diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto index 9c24ae5921d..0bd6d10ae7f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -46,9 +46,6 @@ enum AcceleratorType { // Nvidia Tesla T4 GPU. NVIDIA_TESLA_T4 = 5; - // TPU v2. - TPU_V2 = 6; - - // TPU v3. - TPU_V3 = 7; + // Nvidia Tesla A100 GPU. + NVIDIA_TESLA_A100 = 8; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/artifact.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/artifact.proto new file mode 100644 index 00000000000..f47df663f2f --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/artifact.proto @@ -0,0 +1,90 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/value.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "ArtifactProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Instance of a general artifact. +message Artifact { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Artifact" + pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}" + }; + + // Describes the state of the Artifact. + enum State { + // Unspecified state for the Artifact. + STATE_UNSPECIFIED = 0; + + // A state used by systems like Vertex Pipelines to indicate that the + // underlying data item represented by this Artifact is being created. + PENDING = 1; + + // A state indicating that the Artifact should exist, unless something + // external to the system deletes it. + LIVE = 2; + } + + // Output only. The resource name of the Artifact. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User provided display name of the Artifact. + // May be up to 128 Unicode characters. + string display_name = 2; + + // The uniform resource identifier of the artifact file. + // May be empty if there is no actual artifact file. + string uri = 6; + + // An eTag used to perform consistent read-modify-write updates. If not set, a + // blind "overwrite" update happens. + string etag = 9; + + // The labels with user-defined metadata to organize your Artifacts. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // No more than 64 user labels can be associated with one Artifact (System + // labels are excluded). + map labels = 10; + + // Output only. Timestamp when this Artifact was created. + google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Artifact was last updated. + google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The state of this Artifact. This is a property of the Artifact, and does + // not imply or capture any ongoing process. This property is managed by + // clients (such as Vertex Pipelines), and the system does not prescribe + // or check the validity of state transitions. + State state = 13; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto index 81ca43328a9..6ffe83a640b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto @@ -94,8 +94,7 @@ message BatchPredictionJob { // `errors_N.` files are created (N depends on total number // of failed predictions). These files contain the failed instances, // as per their schema, followed by an additional `error` field which as - // value has - // [`google.rpc.Status`](Status) + // value has [google.rpc.Status][google.rpc.Status] // containing only `code` and `message` fields. GcsDestination gcs_destination = 2; @@ -115,7 +114,7 @@ message BatchPredictionJob { // prediction schemata. The `errors` table contains rows for which the // prediction has failed, it has instance columns, as per the // instance schema, followed by a single "errors" column, which as values - // has [`google.rpc.Status`](Status) + // has [google.rpc.Status][google.rpc.Status] // represented as a STRUCT, and containing only `code` and `message`. BigQueryDestination bigquery_destination = 3; } @@ -140,6 +139,12 @@ message BatchPredictionJob { // format, into which the prediction output is written. string bigquery_output_dataset = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } + + // Output only. The name of the BigQuery table created, in + // `predictions_` + // format, into which the prediction output is written. + // Can be used by UI to generate the BigQuery output path, for example. + string bigquery_output_table = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. Resource name of the BatchPredictionJob. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/context.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/context.proto new file mode 100644 index 00000000000..a50f0b1d6fc --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/context.proto @@ -0,0 +1,75 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/value.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "ContextProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Instance of a general context. +message Context { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Context" + pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}" + }; + + // Output only. The resource name of the Context. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User provided display name of the Context. + // May be up to 128 Unicode characters. + string display_name = 2; + + // An eTag used to perform consistent read-modify-write updates. If not set, a + // blind "overwrite" update happens. + string etag = 8; + + // The labels with user-defined metadata to organize your Contexts. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // No more than 64 user labels can be associated with one Context (System + // labels are excluded). + map labels = 9; + + // Output only. Timestamp when this Context was created. + google.protobuf.Timestamp create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Context was last updated. + google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of resource names of Contexts that are parents of this Context. + // A Context may have at most 10 parent_contexts. + repeated string parent_contexts = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + } + ]; +} 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 7d5c861c93b..bacf4e64260 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 @@ -120,7 +120,9 @@ message CustomJobSpec { // // Private services access must already be configured for the network. If left // unspecified, the job is not peered with any network. - string network = 5; + string network = 5 [(google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + }]; // The Cloud Storage location to store the output of this CustomJob or // HyperparameterTuningJob. For HyperparameterTuningJob, diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/execution.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/execution.proto new file mode 100644 index 00000000000..7e9ee5f11ec --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/execution.proto @@ -0,0 +1,96 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/value.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "ExecutionProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Instance of a general execution. +message Execution { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Execution" + pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}" + }; + + // Describes the state of the Execution. + enum State { + // Unspecified Execution state + STATE_UNSPECIFIED = 0; + + // The Execution is new + NEW = 1; + + // The Execution is running + RUNNING = 2; + + // The Execution has finished running + COMPLETE = 3; + + // The Execution has failed + FAILED = 4; + + // The Execution completed through Cache hit. + CACHED = 5; + + // The Execution was cancelled. + CANCELLED = 6; + } + + // Output only. The resource name of the Execution. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User provided display name of the Execution. + // May be up to 128 Unicode characters. + string display_name = 2; + + // The state of this Execution. This is a property of the Execution, and does + // not imply or capture any ongoing process. This property is managed by + // clients (such as Vertex Pipelines) and the system does not prescribe + // or check the validity of state transitions. + State state = 6; + + // An eTag used to perform consistent read-modify-write updates. If not set, a + // blind "overwrite" update happens. + string etag = 9; + + // The labels with user-defined metadata to organize your Executions. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // No more than 64 user labels can be associated with one Execution (System + // labels are excluded). + map labels = 10; + + // Output only. Timestamp when this Execution was created. + google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Execution was last updated. + google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/io.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/io.proto index f6945c203a7..8a293aa8fd6 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/io.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/io.proto @@ -63,7 +63,8 @@ message BigQueryDestination { // Accepted forms: // // * BigQuery path. For example: - // `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + // `bq://projectId` or `bq://projectId.bqDatasetId` or + // `bq://projectId.bqDatasetId.bqTableId`. string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; } 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 676063d1b2a..bc8a6139d0b 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 @@ -55,4 +55,7 @@ enum JobState { // The job has been stopped, and can be resumed. JOB_STATE_PAUSED = 8; + + // The job has expired. + JOB_STATE_EXPIRED = 9; } 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 b533bc762bd..6d03d2cf4f9 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 @@ -61,12 +61,11 @@ message DedicatedResources { ]; // Required. Immutable. The minimum number of machine replicas this DeployedModel will be always - // deployed on. If traffic against it increases, it may dynamically be + // deployed on. This value must be greater than or equal to 1. + // + // If traffic against the DeployedModel increases, it may dynamically be // deployed onto more replicas, and as traffic decreases, some of these extra // replicas may be freed. - // Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is - // above 0, currently the model will be always deployed precisely on - // [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count]. int32 min_replica_count = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE @@ -81,6 +80,28 @@ message DedicatedResources { // If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] as the // default value. int32 max_replica_count = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The metric specifications that overrides a resource + // utilization metric (CPU utilization, accelerator's duty cycle, and so on) + // target value (default to 60 if not set). At most one entry is allowed per + // metric. + // + // If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is + // above 0, the autoscaling will be based on both CPU utilization and + // accelerator's duty cycle metrics and scale up when either metrics exceeds + // its target value while scale down if both metrics are under their target + // value. The default target value is 60 for both metrics. + // + // If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is + // 0, the autoscaling will be based on CPU utilization metric only with + // default target value 60 if not explicitly set. + // + // For example, in the case of Online Prediction, if you want to override + // target CPU utilization to 80, you should set + // [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name] + // to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and + // [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`. + repeated AutoscalingMetricSpec autoscaling_metric_specs = 4 [(google.api.field_behavior) = IMMUTABLE]; } // A description of resources that to large degree are decided by Vertex AI, @@ -143,3 +164,22 @@ message DiskSpec { // Size in GB of the boot disk (default is 100GB). int32 boot_disk_size_gb = 2; } + +// The metric specification that defines the target resource utilization +// (CPU utilization, accelerator's duty cycle, and so on) for calculating the +// desired replica count. +message AutoscalingMetricSpec { + // Required. The resource metric name. + // Supported metrics: + // + // * For Online Prediction: + // * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` + // * `aiplatform.googleapis.com/prediction/online/cpu/utilization` + string metric_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // The target resource utilization in percentage (1% - 100%) for the given + // metric; once the real usage deviates from the target by a certain + // percentage, the machine replicas change. The default value is 60 + // (representing 60%) if not provided. + int32 target = 2; +} 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 new file mode 100644 index 00000000000..725903055a9 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto @@ -0,0 +1,289 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/artifact.proto"; +import "google/cloud/aiplatform/v1/context.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1/execution.proto"; +import "google/cloud/aiplatform/v1/pipeline_state.proto"; +import "google/cloud/aiplatform/v1/value.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "Pipeline"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Network" + pattern: "projects/{project}/global/networks/{network}" +}; + +// An instance of a machine learning PipelineJob. +message PipelineJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/PipelineJob" + pattern: "projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}" + }; + + // The runtime config of a PipelineJob. + message RuntimeConfig { + // The runtime parameters of the PipelineJob. The parameters will be + // passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders + // at runtime. + map parameters = 1; + + // Required. A path in a Cloud Storage bucket, which will be treated as the root + // output directory of the pipeline. It is used by the system to + // generate the paths of output artifacts. The artifact paths are generated + // with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the + // specified output directory. The service account specified in this + // pipeline must have the `storage.objects.get` and `storage.objects.create` + // permissions for this bucket. + string gcs_output_directory = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Output only. The resource name of the PipelineJob. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The display name of the Pipeline. + // The name can be up to 128 characters long and can be consist of any UTF-8 + // characters. + string display_name = 2; + + // Output only. Pipeline creation time. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Pipeline start time. + google.protobuf.Timestamp start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Pipeline end time. + google.protobuf.Timestamp end_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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]; + + // Output only. The detailed state of the job. + PipelineState state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The details of pipeline run. Not available in the list view. + PipelineJobDetail job_detail = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error that occurred during pipeline execution. + // Only populated when the pipeline's state is FAILED or CANCELLED. + google.rpc.Status error = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize PipelineJob. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + map labels = 11; + + // Runtime config of the pipeline. + RuntimeConfig runtime_config = 12; + + // Customer-managed encryption key spec for a pipelineJob. If set, this + // PipelineJob and all of its sub-resources will be secured by this key. + EncryptionSpec encryption_spec = 16; + + // The service account that the pipeline workload runs as. + // If not specified, the Compute Engine default service account in the project + // will be used. + // See + // https://cloud.google.com/compute/docs/access/service-accounts#default_service_account + // + // Users starting the pipeline must have the `iam.serviceAccounts.actAs` + // permission on this service account. + string service_account = 17; + + // The full name of the Compute Engine + // [network](/compute/docs/networks-and-firewalls#networks) to which the + // Pipeline Job's workload should be peered. For example, + // `projects/12345/global/networks/myVPC`. + // [Format](/compute/docs/reference/rest/v1/networks/insert) + // is of the form `projects/{project}/global/networks/{network}`. + // Where {project} is a project number, as in `12345`, and {network} is a + // network name. + // + // Private services access must already be configured for the network. + // Pipeline job will apply the network configuration to the GCP resources + // being launched, if applied, such as Vertex AI + // Training or Dataflow job. If left unspecified, the workload is not peered + // with any network. + string network = 18 [(google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + }]; +} + +// The runtime detail of PipelineJob. +message PipelineJobDetail { + // Output only. The context of the pipeline. + google.cloud.aiplatform.v1.Context pipeline_context = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The context of the current pipeline run. + google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The runtime details of the tasks under the pipeline. + repeated PipelineTaskDetail task_details = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The runtime detail of a task execution. +message PipelineTaskDetail { + // A list of artifact metadata. + message ArtifactList { + // Output only. A list of artifact metadata. + repeated google.cloud.aiplatform.v1.Artifact artifacts = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Specifies state of TaskExecution + enum State { + // Unspecified. + STATE_UNSPECIFIED = 0; + + // Specifies pending state for the task. + PENDING = 1; + + // Specifies task is being executed. + RUNNING = 2; + + // Specifies task completed successfully. + SUCCEEDED = 3; + + // Specifies Task cancel is in pending state. + CANCEL_PENDING = 4; + + // Specifies task is being cancelled. + CANCELLING = 5; + + // Specifies task was cancelled. + CANCELLED = 6; + + // Specifies task failed. + FAILED = 7; + + // Specifies task was skipped due to cache hit. + SKIPPED = 8; + + // Specifies that the task was not triggered because the task's trigger + // policy is not satisfied. The trigger policy is specified in the + // `condition` field of [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec]. + NOT_TRIGGERED = 9; + } + + // Output only. The system generated ID of the task. + int64 task_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The id of the parent task if the task is within a component scope. + // Empty if the task is at the root level. + int64 parent_task_id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The user specified name of the task that is defined in + // [PipelineJob.spec][]. + string task_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Task create time. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Task start time. + google.protobuf.Timestamp start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Task end time. + google.protobuf.Timestamp end_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed execution info. + PipelineTaskExecutorDetail executor_detail = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the task. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The execution metadata of the task. + google.cloud.aiplatform.v1.Execution execution = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error that occurred during task execution. + // Only populated when the task's state is FAILED or CANCELLED. + google.rpc.Status error = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The runtime input artifacts of the task. + map inputs = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The runtime output artifacts of the task. + map outputs = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The runtime detail of a pipeline executor. +message PipelineTaskExecutorDetail { + // The detail of a container execution. It contains the job names of the + // lifecycle of a container execution. + message ContainerDetail { + // Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container execution. + string main_job = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CustomJob" + } + ]; + + // Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the pre-caching-check container + // execution. This job will be available if the + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in + // the lifecycle events. + string pre_caching_check_job = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CustomJob" + } + ]; + } + + // The detailed info for a custom job executor. + message CustomJobDetail { + option deprecated = true; + + // Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob]. + string job = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CustomJob" + } + ]; + } + + oneof details { + // Output only. The detailed info for a container executor. + ContainerDetail container_detail = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed info for a custom job executor. + CustomJobDetail custom_job_detail = 2 [ + deprecated = true, + (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 3940f2871cc..59f41125396 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 @@ -20,6 +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/v1/pipeline_job.proto"; import "google/cloud/aiplatform/v1/training_pipeline.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; @@ -95,6 +96,61 @@ service PipelineService { }; option (google.api.method_signature) = "name"; } + + // Creates a PipelineJob. A PipelineJob will run immediately when created. + rpc CreatePipelineJob(CreatePipelineJobRequest) returns (google.cloud.aiplatform.v1.PipelineJob) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/pipelineJobs" + body: "pipeline_job" + }; + option (google.api.method_signature) = "parent,pipeline_job,pipeline_job_id"; + } + + // Gets a PipelineJob. + rpc GetPipelineJob(GetPipelineJobRequest) returns (google.cloud.aiplatform.v1.PipelineJob) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/pipelineJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists PipelineJobs in a Location. + rpc ListPipelineJobs(ListPipelineJobsRequest) returns (ListPipelineJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/pipelineJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a PipelineJob. + rpc DeletePipelineJob(DeletePipelineJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/pipelineJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Cancels a PipelineJob. + // Starts asynchronous cancellation on the PipelineJob. The server + // makes a best effort to cancel the pipeline, but success is not + // guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or + // other methods to check whether the cancellation succeeded or whether the + // pipeline completed despite cancellation. On successful cancellation, + // the PipelineJob is not deleted; instead it becomes a pipeline with + // a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to + // `CANCELLED`. + rpc CancelPipelineJob(CancelPipelineJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/pipelineJobs/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } } // Request message for [PipelineService.CreateTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipeline]. @@ -136,22 +192,32 @@ message ListTrainingPipelinesRequest { } ]; - // The standard list filter. - // Supported fields: - // - // * `display_name` supports = and !=. + // Lists the PipelineJobs that match the filter expression. The following + // fields are supported: // - // * `state` supports = and !=. + // * `pipeline_name`: Supports `=` and `!=` comparisons. + // * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + // Values must be in RFC 3339 format. + // * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + // Values must be in RFC 3339 format. + // * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + // Values must be in RFC 3339 format. + // * `labels`: Supports key-value equality and key presence. // - // Some examples of using the filter are: + // Filter expressions can be combined together using logical operators + // (`AND` & `OR`). + // For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. // - // * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` + // The syntax to define filter expression is based on + // https://google.aip.dev/160. // - // * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` + // Examples: // - // * `NOT display_name="my_pipeline"` - // - // * `state="PIPELINE_STATE_FAILED"` + // * `create_time>"2021-05-18T00:00:00Z" OR + // update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated + // after 2020-05-18 00:00:00 UTC. + // * `labels.env = "prod"` + // PipelineJobs with label "env" set to "prod". string filter = 2; // The standard list page size. @@ -202,3 +268,110 @@ message CancelTrainingPipelineRequest { } ]; } + +// Request message for [PipelineService.CreatePipelineJob][google.cloud.aiplatform.v1.PipelineService.CreatePipelineJob]. +message CreatePipelineJobRequest { + // Required. The resource name of the Location to create the PipelineJob in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The PipelineJob to create. + google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(google.api.field_behavior) = REQUIRED]; + + // The ID to use for the PipelineJob, which will become the final component of + // the PipelineJob name. If not provided, an ID will be automatically + // generated. + // + // This value should be less than 128 characters, and valid characters + // are /[a-z][0-9]-/. + string pipeline_job_id = 3; +} + +// Request message for [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob]. +message GetPipelineJobRequest { + // Required. The name of the PipelineJob resource. + // Format: + // `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/PipelineJob" + } + ]; +} + +// Request message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs]. +message ListPipelineJobsRequest { + // Required. The resource name of the Location to list the PipelineJobs from. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard list filter. + // Supported fields: + // + // * `display_name` supports `=` and `!=`. + // * `state` supports `=` and `!=`. + // + // The following examples demonstrate how to filter the list of PipelineJobs: + // + // * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` + // * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` + // * `NOT display_name="my_pipeline"` + // * `state="PIPELINE_STATE_FAILED"` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] of the previous + // [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] call. + string page_token = 4; +} + +// Response message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] +message ListPipelineJobsResponse { + // List of PipelineJobs in the requested page. + repeated google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + + // A token to retrieve the next page of results. + // Pass to [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// Request message for [PipelineService.DeletePipelineJob][google.cloud.aiplatform.v1.PipelineService.DeletePipelineJob]. +message DeletePipelineJobRequest { + // Required. The name of the PipelineJob resource to be deleted. + // Format: + // `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/PipelineJob" + } + ]; +} + +// Request message for [PipelineService.CancelPipelineJob][google.cloud.aiplatform.v1.PipelineService.CancelPipelineJob]. +message CancelPipelineJobRequest { + // Required. The name of the PipelineJob to cancel. + // Format: + // `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/PipelineJob" + } + ]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto index 738a1ab355e..b6206b869aa 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto @@ -19,6 +19,7 @@ package google.cloud.aiplatform.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/httpbody.proto"; import "google/api/resource.proto"; import "google/protobuf/struct.proto"; @@ -40,8 +41,12 @@ service PredictionService { option (google.api.http) = { post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict" body: "*" + additional_bindings { + post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:predictInternal" + body: "*" + } }; - option (google.api.method_signature) = "endpoint,instances,parameters"; + option (google.api.method_signature) = "endpoint,parameters,instances"; } } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto index 6d4dbe6a844..75222795023 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto @@ -28,7 +28,7 @@ option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Instance" // Prediction input format for Image Classification. message ImageClassificationPredictionInstance { - // The image bytes or GCS URI to make the prediction on. + // The image bytes or Cloud Storage URI to make the prediction on. string content = 1; // The MIME type of the content of the image. Only the images in below listed diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto index 8eafa48c3d2..5e53173366e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto @@ -28,7 +28,7 @@ option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Instance" // Prediction input format for Image Object Detection. message ImageObjectDetectionPredictionInstance { - // The image bytes or GCS URI to make the prediction on. + // The image bytes or Cloud Storage URI to make the prediction on. string content = 1; // The MIME type of the content of the image. Only the images in below listed diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto index 96838b085ee..b4682c03595 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto index 36a431da24d..697ee1197b3 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto @@ -38,7 +38,7 @@ message TextExtractionPredictionInstance { // This field is only used for batch prediction. If a key is provided, the // batch prediction result will by mapped to this key. If omitted, then the - // batch prediction result will contain the entire input instance. AI Platform + // batch prediction result will contain the entire input instance. Vertex AI // will not check if keys in the request are duplicates, so it is up to the // caller to ensure the keys are unique. string key = 3; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto index eb196d70be9..50e06ee8d24 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto index b4aa6488005..ec062072f49 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto @@ -37,15 +37,15 @@ message VideoClassificationPredictionParams { // fewer predictions. Default value is 10,000. int32 max_predictions = 2; - // Set to true to request segment-level classification. AI Platform returns + // Set to true to request segment-level classification. Vertex AI returns // labels and their confidence scores for the entire time segment of the // video that user specified in the input instance. // Default value is true bool segment_classification = 3; - // Set to true to request shot-level classification. AI Platform determines + // Set to true to request shot-level classification. Vertex AI determines // the boundaries for each camera shot in the entire time segment of the - // video that user specified in the input instance. AI Platform then + // video that user specified in the input instance. Vertex AI then // returns labels and their confidence scores for each detected shot, along // with the start and end time of the shot. // WARNING: Model evaluation is not done for this classification type, @@ -55,7 +55,7 @@ message VideoClassificationPredictionParams { bool shot_classification = 4; // Set to true to request classification for a video at one-second intervals. - // AI Platform returns labels and their confidence scores for each second of + // Vertex AI returns labels and their confidence scores for each second of // the entire time segment of the video that user specified in the input // WARNING: Model evaluation is not done for this classification type, the // quality of it depends on the training data, but there are no metrics diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto index 60c7280c75b..b8e396ab6c6 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto @@ -28,8 +28,7 @@ option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Predictio // Prediction output format for Image and Text Classification. message ClassificationPredictionResult { - // The resource IDs of the AnnotationSpecs that had been identified, ordered - // by the confidence score descendingly. + // The resource IDs of the AnnotationSpecs that had been identified. repeated int64 ids = 1; // The display names of the AnnotationSpecs that had been identified, order diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto index ada129d9c7b..f245f1e1372 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto index c1911f0ad71..00af43c1c4d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto index 10ce3878774..0c4ee2d6e07 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1.schema.trainingjob.definition; +import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto"; import "google/api/annotations.proto"; @@ -270,6 +271,9 @@ message AutoMlTablesInputs { // Configuration for exporting test set predictions to a BigQuery table. If // this configuration is absent, then the export is not performed. ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 10; + + // Additional experiment flags for the Tables training pipeline. + repeated string additional_experiments = 11; } // Model metadata specific to AutoML Tables. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto index e303d2c80cf..86f723b7dab 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto @@ -46,6 +46,16 @@ message AutoMlVideoActionRecognitionInputs { // also be exported (see ModelService.ExportModel) as a TensorFlow or // TensorFlow Lite model and used on a mobile or edge device afterwards. MOBILE_VERSATILE_1 = 2; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) to a Jetson device + // afterwards. + MOBILE_JETSON_VERSATILE_1 = 3; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) as a TensorFlow or + // TensorFlow Lite model and used on a Coral device afterwards. + MOBILE_CORAL_VERSATILE_1 = 4; } ModelType model_type = 1; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto index 466eba665e5..ac0d3235658 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto @@ -33,7 +33,6 @@ message ExportEvaluatedDataItemsConfig { // // If not specified, then results are exported to the following auto-created // BigQuery table: - // // :export_evaluated_examples__.evaluated_examples string destination_bigquery_uri = 1; 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 65a19110f81..c05c49e5b8b 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 @@ -21,7 +21,6 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -79,6 +78,9 @@ message Trial { INFEASIBLE = 5; } + // Output only. Resource name of the Trial assigned by the service. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The identifier of the Trial assigned by the service. string id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -91,12 +93,31 @@ message Trial { // Output only. The final measurement containing the objective value. Measurement final_measurement = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. A list of measurements that are strictly lexicographically + // ordered by their induced tuples (steps, elapsed_duration). + // These are used for early stopping computations. + repeated Measurement measurements = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Time when the Trial was started. google.protobuf.Timestamp start_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when the Trial's status changed to `SUCCEEDED` or `INFEASIBLE`. google.protobuf.Timestamp end_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The identifier of the client that originally requested this Trial. + // Each client is identified by a unique client_id. When a client + // asks for a suggestion, Vizier will assign it a Trial. The client should + // evaluate the Trial, complete it, and report back to Vizier. + // If suggestion is asked again by same client_id before the Trial is + // completed, the same Trial will be returned. Multiple clients with + // different client_ids can ask for suggestions simultaneously, each of them + // will get their own Trial. + string client_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A human readable string describing why the Trial is + // infeasible. This is set only if Trial state is `INFEASIBLE`. + string infeasible_reason = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The CustomJob name linked to the Trial. // It's set for a HyperparameterTuningJob's Trial. string custom_job = 11 [ @@ -140,6 +161,14 @@ message StudySpec { // Required. Inclusive maximum value of the parameter. double max_value = 2 [(google.api.field_behavior) = REQUIRED]; + + // A default value for a `DOUBLE` parameter that is assumed to be a + // relatively good starting point. Unset value signals that there is no + // offered starting point. + // + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + optional double default_value = 4; } // Value specification for a parameter in `INTEGER` type. @@ -149,12 +178,28 @@ message StudySpec { // Required. Inclusive maximum value of the parameter. int64 max_value = 2 [(google.api.field_behavior) = REQUIRED]; + + // A default value for an `INTEGER` parameter that is assumed to be a + // relatively good starting point. Unset value signals that there is no + // offered starting point. + // + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + optional int64 default_value = 4; } // Value specification for a parameter in `CATEGORICAL` type. message CategoricalValueSpec { // Required. The list of possible categories. repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; + + // A default value for a `CATEGORICAL` parameter that is assumed to be a + // relatively good starting point. Unset value signals that there is no + // offered starting point. + // + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + optional string default_value = 3; } // Value specification for a parameter in `DISCRETE` type. @@ -164,6 +209,15 @@ message StudySpec { // For instance, this parameter might have possible settings of 1.5, 2.5, // and 4.0. This list should not contain more than 1,000 values. repeated double values = 1 [(google.api.field_behavior) = REQUIRED]; + + // A default value for a `DISCRETE` parameter that is assumed to be a + // relatively good starting point. Unset value signals that there is no + // offered starting point. It automatically rounds to the + // nearest feasible discrete point. + // + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + optional double default_value = 3; } // Represents a parameter spec with condition from its parent parameter. @@ -350,6 +404,9 @@ message Measurement { double value = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Output only. Time that the Trial has been running at the point of this Measurement. + google.protobuf.Duration elapsed_duration = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The number of steps the machine learning model has been trained for. // Must be non-negative. int64 step_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/value.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/value.proto new file mode 100644 index 00000000000..48607bf9591 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/value.proto @@ -0,0 +1,41 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "ValueProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Value is the value of the field. +message Value { + oneof value { + // An integer value. + int64 int_value = 1; + + // A double value. + double double_value = 2; + + // A string value. + string string_value = 3; + } +} diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index 027fa6639d8..3c4b195700c 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -34,8 +34,7 @@ export namespace google { NVIDIA_TESLA_V100 = 3, NVIDIA_TESLA_P4 = 4, NVIDIA_TESLA_T4 = 5, - TPU_V2 = 6, - TPU_V3 = 7 + NVIDIA_TESLA_A100 = 8 } /** Properties of an Annotation. */ @@ -389,6 +388,253 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an Artifact. */ + interface IArtifact { + + /** Artifact name */ + name?: (string|null); + + /** Artifact displayName */ + displayName?: (string|null); + + /** Artifact uri */ + uri?: (string|null); + + /** Artifact etag */ + etag?: (string|null); + + /** Artifact labels */ + labels?: ({ [k: string]: string }|null); + + /** Artifact createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Artifact updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Artifact state */ + state?: (google.cloud.aiplatform.v1.Artifact.State|keyof typeof google.cloud.aiplatform.v1.Artifact.State|null); + } + + /** Represents an Artifact. */ + class Artifact implements IArtifact { + + /** + * Constructs a new Artifact. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IArtifact); + + /** Artifact name. */ + public name: string; + + /** Artifact displayName. */ + public displayName: string; + + /** Artifact uri. */ + public uri: string; + + /** Artifact etag. */ + public etag: string; + + /** Artifact labels. */ + public labels: { [k: string]: string }; + + /** Artifact createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Artifact updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Artifact state. */ + public state: (google.cloud.aiplatform.v1.Artifact.State|keyof typeof google.cloud.aiplatform.v1.Artifact.State); + + /** + * Creates a new Artifact instance using the specified properties. + * @param [properties] Properties to set + * @returns Artifact instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IArtifact): google.cloud.aiplatform.v1.Artifact; + + /** + * Encodes the specified Artifact message. Does not implicitly {@link google.cloud.aiplatform.v1.Artifact.verify|verify} messages. + * @param message Artifact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Artifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Artifact.verify|verify} messages. + * @param message Artifact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Artifact message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Artifact + * @throws {Error} If the payload is not a reader 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.Artifact; + + /** + * Decodes an Artifact message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Artifact + * @throws {Error} If the payload is not 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.Artifact; + + /** + * Verifies an Artifact message. + * @param message Plain 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 Artifact message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Artifact + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Artifact; + + /** + * Creates a plain object from an Artifact message. Also converts values to other types if specified. + * @param message Artifact + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Artifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Artifact to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Artifact { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + PENDING = 1, + LIVE = 2 + } + } + + /** 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.v1.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.v1.IValue): google.cloud.aiplatform.v1.Value; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -813,6 +1059,9 @@ export namespace google { /** OutputInfo bigqueryOutputDataset */ bigqueryOutputDataset?: (string|null); + + /** OutputInfo bigqueryOutputTable */ + bigqueryOutputTable?: (string|null); } /** Represents an OutputInfo. */ @@ -830,6 +1079,9 @@ export namespace google { /** OutputInfo bigqueryOutputDataset. */ public bigqueryOutputDataset?: (string|null); + /** OutputInfo bigqueryOutputTable. */ + public bigqueryOutputTable: string; + /** OutputInfo outputLocation. */ public outputLocation?: ("gcsOutputDirectory"|"bigqueryOutputDataset"); @@ -1557,7 +1809,8 @@ export namespace google { JOB_STATE_FAILED = 5, JOB_STATE_CANCELLING = 6, JOB_STATE_CANCELLED = 7, - JOB_STATE_PAUSED = 8 + JOB_STATE_PAUSED = 8, + JOB_STATE_EXPIRED = 9 } /** Properties of a MachineSpec. */ @@ -1673,6 +1926,9 @@ export namespace google { /** DedicatedResources maxReplicaCount */ maxReplicaCount?: (number|null); + + /** DedicatedResources autoscalingMetricSpecs */ + autoscalingMetricSpecs?: (google.cloud.aiplatform.v1.IAutoscalingMetricSpec[]|null); } /** Represents a DedicatedResources. */ @@ -1693,6 +1949,9 @@ export namespace google { /** DedicatedResources maxReplicaCount. */ public maxReplicaCount: number; + /** DedicatedResources autoscalingMetricSpecs. */ + public autoscalingMetricSpecs: google.cloud.aiplatform.v1.IAutoscalingMetricSpec[]; + /** * Creates a new DedicatedResources instance using the specified properties. * @param [properties] Properties to set @@ -2148,6 +2407,102 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an AutoscalingMetricSpec. */ + interface IAutoscalingMetricSpec { + + /** AutoscalingMetricSpec metricName */ + metricName?: (string|null); + + /** AutoscalingMetricSpec target */ + target?: (number|null); + } + + /** Represents an AutoscalingMetricSpec. */ + class AutoscalingMetricSpec implements IAutoscalingMetricSpec { + + /** + * Constructs a new AutoscalingMetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IAutoscalingMetricSpec); + + /** AutoscalingMetricSpec metricName. */ + public metricName: string; + + /** AutoscalingMetricSpec target. */ + public target: number; + + /** + * Creates a new AutoscalingMetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoscalingMetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IAutoscalingMetricSpec): google.cloud.aiplatform.v1.AutoscalingMetricSpec; + + /** + * Encodes the specified AutoscalingMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.AutoscalingMetricSpec.verify|verify} messages. + * @param message AutoscalingMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IAutoscalingMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoscalingMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AutoscalingMetricSpec.verify|verify} messages. + * @param message AutoscalingMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAutoscalingMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoscalingMetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoscalingMetricSpec + * @throws {Error} If the payload is not a reader 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.AutoscalingMetricSpec; + + /** + * Decodes an AutoscalingMetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoscalingMetricSpec + * @throws {Error} If the payload is not 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.AutoscalingMetricSpec; + + /** + * Verifies an AutoscalingMetricSpec message. + * @param message Plain 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 AutoscalingMetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoscalingMetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AutoscalingMetricSpec; + + /** + * Creates a plain object from an AutoscalingMetricSpec message. Also converts values to other types if specified. + * @param message AutoscalingMetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.AutoscalingMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoscalingMetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a ManualBatchTuningParameters. */ interface IManualBatchTuningParameters { @@ -2238,6 +2593,132 @@ export namespace google { 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); + } + + /** Represents a Context. */ + class Context implements IContext { + + /** + * Constructs a new Context. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.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); + + /** Context parentContexts. */ + public parentContexts: string[]; + + /** + * Creates a new Context instance using the specified properties. + * @param [properties] Properties to set + * @returns Context instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IContext): google.cloud.aiplatform.v1.Context; + + /** + * Encodes the specified Context message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Context message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.v1.Context; + + /** + * Decodes a Context message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.v1.Context; + + /** + * Verifies a Context message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Context message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Context + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Context; + + /** + * 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.v1.Context, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Context to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a CustomJob. */ interface ICustomJob { @@ -9462,6 +9943,146 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an Execution. */ + interface IExecution { + + /** Execution name */ + name?: (string|null); + + /** Execution displayName */ + displayName?: (string|null); + + /** Execution state */ + state?: (google.cloud.aiplatform.v1.Execution.State|keyof typeof google.cloud.aiplatform.v1.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); + } + + /** Represents an Execution. */ + class Execution implements IExecution { + + /** + * Constructs a new Execution. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExecution); + + /** Execution name. */ + public name: string; + + /** Execution displayName. */ + public displayName: string; + + /** Execution state. */ + public state: (google.cloud.aiplatform.v1.Execution.State|keyof typeof google.cloud.aiplatform.v1.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); + + /** + * Creates a new Execution instance using the specified properties. + * @param [properties] Properties to set + * @returns Execution instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExecution): google.cloud.aiplatform.v1.Execution; + + /** + * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.v1.Execution; + + /** + * Decodes an Execution message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.v1.Execution; + + /** + * 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 an Execution message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Execution + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Execution; + + /** + * 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.v1.Execution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Execution to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Execution { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + NEW = 1, + RUNNING = 2, + COMPLETE = 3, + FAILED = 4, + CACHED = 5, + CANCELLED = 6 + } + } + /** Properties of a HyperparameterTuningJob. */ interface IHyperparameterTuningJob { @@ -9645,6 +10266,9 @@ export namespace google { /** Properties of a Trial. */ interface ITrial { + /** Trial name */ + name?: (string|null); + /** Trial id */ id?: (string|null); @@ -9657,12 +10281,21 @@ export namespace google { /** Trial finalMeasurement */ finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + /** Trial measurements */ + measurements?: (google.cloud.aiplatform.v1.IMeasurement[]|null); + /** Trial startTime */ startTime?: (google.protobuf.ITimestamp|null); /** Trial endTime */ endTime?: (google.protobuf.ITimestamp|null); + /** Trial clientId */ + clientId?: (string|null); + + /** Trial infeasibleReason */ + infeasibleReason?: (string|null); + /** Trial customJob */ customJob?: (string|null); } @@ -9676,6 +10309,9 @@ export namespace google { */ constructor(properties?: google.cloud.aiplatform.v1.ITrial); + /** Trial name. */ + public name: string; + /** Trial id. */ public id: string; @@ -9688,12 +10324,21 @@ export namespace google { /** Trial finalMeasurement. */ public finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + /** Trial measurements. */ + public measurements: google.cloud.aiplatform.v1.IMeasurement[]; + /** 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; @@ -10238,6 +10883,9 @@ export namespace google { /** DoubleValueSpec maxValue */ maxValue?: (number|null); + + /** DoubleValueSpec defaultValue */ + defaultValue?: (number|null); } /** Represents a DoubleValueSpec. */ @@ -10255,6 +10903,12 @@ export namespace google { /** 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 @@ -10334,6 +10988,9 @@ export namespace google { /** IntegerValueSpec maxValue */ maxValue?: (number|Long|string|null); + + /** IntegerValueSpec defaultValue */ + defaultValue?: (number|Long|string|null); } /** Represents an IntegerValueSpec. */ @@ -10351,6 +11008,12 @@ export namespace google { /** IntegerValueSpec maxValue. */ public maxValue: (number|Long|string); + /** IntegerValueSpec defaultValue. */ + public defaultValue?: (number|Long|string|null); + + /** IntegerValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; + /** * Creates a new IntegerValueSpec instance using the specified properties. * @param [properties] Properties to set @@ -10427,6 +11090,9 @@ export namespace google { /** CategoricalValueSpec values */ values?: (string[]|null); + + /** CategoricalValueSpec defaultValue */ + defaultValue?: (string|null); } /** Represents a CategoricalValueSpec. */ @@ -10441,6 +11107,12 @@ export namespace google { /** CategoricalValueSpec values. */ public values: string[]; + /** CategoricalValueSpec defaultValue. */ + public defaultValue?: (string|null); + + /** CategoricalValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; + /** * Creates a new CategoricalValueSpec instance using the specified properties. * @param [properties] Properties to set @@ -10517,6 +11189,9 @@ export namespace google { /** DiscreteValueSpec values */ values?: (number[]|null); + + /** DiscreteValueSpec defaultValue */ + defaultValue?: (number|null); } /** Represents a DiscreteValueSpec. */ @@ -10531,6 +11206,12 @@ export namespace google { /** DiscreteValueSpec values. */ public values: number[]; + /** DiscreteValueSpec defaultValue. */ + public defaultValue?: (number|null); + + /** DiscreteValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; + /** * Creates a new DiscreteValueSpec instance using the specified properties. * @param [properties] Properties to set @@ -11020,6 +11701,9 @@ export namespace google { /** Properties of a Measurement. */ interface IMeasurement { + /** Measurement elapsedDuration */ + elapsedDuration?: (google.protobuf.IDuration|null); + /** Measurement stepCount */ stepCount?: (number|Long|string|null); @@ -11036,6 +11720,9 @@ export namespace google { */ constructor(properties?: google.cloud.aiplatform.v1.IMeasurement); + /** Measurement elapsedDuration. */ + public elapsedDuration?: (google.protobuf.IDuration|null); + /** Measurement stepCount. */ public stepCount: (number|Long|string); @@ -18364,706 +19051,2313 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Represents a PipelineService */ - class PipelineService extends $protobuf.rpc.Service { + /** Properties of a PipelineJob. */ + interface IPipelineJob { + + /** PipelineJob name */ + name?: (string|null); + + /** PipelineJob displayName */ + displayName?: (string|null); + + /** PipelineJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob startTime */ + startTime?: (google.protobuf.ITimestamp|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.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState|null); + + /** PipelineJob jobDetail */ + jobDetail?: (google.cloud.aiplatform.v1.IPipelineJobDetail|null); + + /** PipelineJob error */ + error?: (google.rpc.IStatus|null); + + /** PipelineJob labels */ + labels?: ({ [k: string]: string }|null); + + /** PipelineJob runtimeConfig */ + runtimeConfig?: (google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null); + + /** PipelineJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** PipelineJob serviceAccount */ + serviceAccount?: (string|null); + + /** PipelineJob network */ + network?: (string|null); + } + + /** Represents a PipelineJob. */ + class PipelineJob implements IPipelineJob { /** - * 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 + * Constructs a new PipelineJob. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.aiplatform.v1.IPipelineJob); + + /** PipelineJob name. */ + public name: string; + + /** PipelineJob displayName. */ + public displayName: string; + + /** PipelineJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|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.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState); + + /** PipelineJob jobDetail. */ + public jobDetail?: (google.cloud.aiplatform.v1.IPipelineJobDetail|null); + + /** PipelineJob error. */ + public error?: (google.rpc.IStatus|null); + + /** PipelineJob labels. */ + public labels: { [k: string]: string }; + + /** PipelineJob runtimeConfig. */ + public runtimeConfig?: (google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null); + + /** PipelineJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** PipelineJob serviceAccount. */ + public serviceAccount: string; + + /** PipelineJob network. */ + public network: 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. + * Creates a new PipelineJob instance using the specified properties. + * @param [properties] Properties to set + * @returns PipelineJob instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PipelineService; + public static create(properties?: google.cloud.aiplatform.v1.IPipelineJob): google.cloud.aiplatform.v1.PipelineJob; /** - * Calls CreateTrainingPipeline. - * @param request CreateTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TrainingPipeline + * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * @param message PipelineJob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createTrainingPipeline(request: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback): void; + public static encode(message: google.cloud.aiplatform.v1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateTrainingPipeline. - * @param request CreateTrainingPipelineRequest message or plain object - * @returns Promise + * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * @param message PipelineJob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createTrainingPipeline(request: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetTrainingPipeline. - * @param request GetTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TrainingPipeline + * 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 PipelineJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getTrainingPipeline(request: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PipelineJob; /** - * Calls GetTrainingPipeline. - * @param request GetTrainingPipelineRequest message or plain object - * @returns Promise + * Decodes a PipelineJob message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PipelineJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getTrainingPipeline(request: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PipelineJob; + + /** + * 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 PipelineJob message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PipelineJob + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob; + + /** + * 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.v1.PipelineJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PipelineJob to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace PipelineJob { + + /** Properties of a RuntimeConfig. */ + interface IRuntimeConfig { + + /** RuntimeConfig parameters */ + parameters?: ({ [k: string]: google.cloud.aiplatform.v1.IValue }|null); + + /** RuntimeConfig gcsOutputDirectory */ + gcsOutputDirectory?: (string|null); + } + + /** Represents a RuntimeConfig. */ + class RuntimeConfig implements IRuntimeConfig { + + /** + * Constructs a new RuntimeConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig); + + /** RuntimeConfig parameters. */ + public parameters: { [k: string]: google.cloud.aiplatform.v1.IValue }; + + /** RuntimeConfig gcsOutputDirectory. */ + public gcsOutputDirectory: string; + + /** + * Creates a new RuntimeConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RuntimeConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig; + + /** + * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.v1.PipelineJob.RuntimeConfig; + + /** + * 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.v1.PipelineJob.RuntimeConfig; + + /** + * 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.v1.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.v1.PipelineJob.RuntimeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RuntimeConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a PipelineJobDetail. */ + interface IPipelineJobDetail { + + /** PipelineJobDetail pipelineContext */ + pipelineContext?: (google.cloud.aiplatform.v1.IContext|null); + + /** PipelineJobDetail pipelineRunContext */ + pipelineRunContext?: (google.cloud.aiplatform.v1.IContext|null); + + /** PipelineJobDetail taskDetails */ + taskDetails?: (google.cloud.aiplatform.v1.IPipelineTaskDetail[]|null); + } + + /** Represents a PipelineJobDetail. */ + class PipelineJobDetail implements IPipelineJobDetail { + + /** + * Constructs a new PipelineJobDetail. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPipelineJobDetail); + + /** PipelineJobDetail pipelineContext. */ + public pipelineContext?: (google.cloud.aiplatform.v1.IContext|null); + + /** PipelineJobDetail pipelineRunContext. */ + public pipelineRunContext?: (google.cloud.aiplatform.v1.IContext|null); + + /** PipelineJobDetail taskDetails. */ + public taskDetails: google.cloud.aiplatform.v1.IPipelineTaskDetail[]; + + /** + * Creates a new PipelineJobDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns PipelineJobDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPipelineJobDetail): google.cloud.aiplatform.v1.PipelineJobDetail; + + /** + * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.v1.PipelineJobDetail; + + /** + * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.v1.PipelineJobDetail; + + /** + * 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 PipelineJobDetail message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PipelineJobDetail + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJobDetail; + + /** + * 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.v1.PipelineJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PipelineJobDetail 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.v1.IPipelineTaskExecutorDetail|null); + + /** PipelineTaskDetail state */ + state?: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State|null); + + /** PipelineTaskDetail execution */ + execution?: (google.cloud.aiplatform.v1.IExecution|null); + + /** PipelineTaskDetail error */ + error?: (google.rpc.IStatus|null); + + /** PipelineTaskDetail inputs */ + inputs?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }|null); + + /** PipelineTaskDetail outputs */ + outputs?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }|null); + } + + /** Represents a PipelineTaskDetail. */ + class PipelineTaskDetail implements IPipelineTaskDetail { + + /** + * Constructs a new PipelineTaskDetail. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPipelineTaskDetail); + + /** PipelineTaskDetail taskId. */ + public taskId: (number|Long|string); + + /** PipelineTaskDetail parentTaskId. */ + public parentTaskId: (number|Long|string); + + /** PipelineTaskDetail taskName. */ + public taskName: string; + + /** PipelineTaskDetail createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail executorDetail. */ + public executorDetail?: (google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null); + + /** PipelineTaskDetail state. */ + public state: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State); + + /** PipelineTaskDetail execution. */ + public execution?: (google.cloud.aiplatform.v1.IExecution|null); + + /** PipelineTaskDetail error. */ + public error?: (google.rpc.IStatus|null); + + /** PipelineTaskDetail inputs. */ + public inputs: { [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }; + + /** PipelineTaskDetail outputs. */ + public outputs: { [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }; + + /** + * Creates a new PipelineTaskDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns PipelineTaskDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPipelineTaskDetail): google.cloud.aiplatform.v1.PipelineTaskDetail; + + /** + * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PipelineTaskDetail; + + /** + * 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 + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PipelineTaskDetail; + + /** + * 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 PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PipelineTaskDetail + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail; + + /** + * 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.v1.PipelineTaskDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PipelineTaskDetail to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace PipelineTaskDetail { + + /** Properties of an ArtifactList. */ + interface IArtifactList { + + /** ArtifactList artifacts */ + artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); + } + + /** Represents an ArtifactList. */ + class ArtifactList implements IArtifactList { + + /** + * Constructs a new ArtifactList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList); + + /** ArtifactList artifacts. */ + public artifacts: google.cloud.aiplatform.v1.IArtifact[]; + + /** + * Creates a new ArtifactList instance using the specified properties. + * @param [properties] Properties to set + * @returns ArtifactList instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList): google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList; + + /** + * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.PipelineTaskDetail.IArtifactList, 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.v1.PipelineTaskDetail.ArtifactList; + + /** + * 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.v1.PipelineTaskDetail.ArtifactList; + + /** + * 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); + + /** + * 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.v1.PipelineTaskDetail.ArtifactList; + + /** + * 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.v1.PipelineTaskDetail.ArtifactList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ArtifactList to JSON. + * @returns JSON object + */ + public toJSON(): { [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 + } + } + + /** Properties of a PipelineTaskExecutorDetail. */ + interface IPipelineTaskExecutorDetail { + + /** PipelineTaskExecutorDetail containerDetail */ + containerDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null); + + /** PipelineTaskExecutorDetail customJobDetail */ + customJobDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + } + + /** Represents a PipelineTaskExecutorDetail. */ + class PipelineTaskExecutorDetail implements IPipelineTaskExecutorDetail { + + /** + * Constructs a new PipelineTaskExecutorDetail. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail); + + /** PipelineTaskExecutorDetail containerDetail. */ + public containerDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null); + + /** PipelineTaskExecutorDetail customJobDetail. */ + public customJobDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + + /** PipelineTaskExecutorDetail details. */ + public details?: ("containerDetail"|"customJobDetail"); + + /** + * Creates a new PipelineTaskExecutorDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns PipelineTaskExecutorDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; + + /** + * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.v1.PipelineTaskExecutorDetail; + + /** + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.v1.PipelineTaskExecutorDetail; + + /** + * 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 PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PipelineTaskExecutorDetail + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; + + /** + * 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.v1.PipelineTaskExecutorDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PipelineTaskExecutorDetail to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace PipelineTaskExecutorDetail { + + /** Properties of a ContainerDetail. */ + interface IContainerDetail { + + /** ContainerDetail mainJob */ + mainJob?: (string|null); + + /** ContainerDetail preCachingCheckJob */ + preCachingCheckJob?: (string|null); + } + + /** Represents a ContainerDetail. */ + class ContainerDetail implements IContainerDetail { + + /** + * Constructs a new ContainerDetail. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail); + + /** ContainerDetail mainJob. */ + public mainJob: string; + + /** ContainerDetail preCachingCheckJob. */ + public preCachingCheckJob: string; + + /** + * Creates a new ContainerDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainerDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; + + /** + * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail); + + /** CustomJobDetail job. */ + public job: string; + + /** + * Creates a new CustomJobDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomJobDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; + + /** + * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.v1.PipelineTaskExecutorDetail.CustomJobDetail; + + /** + * 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.v1.PipelineTaskExecutorDetail.CustomJobDetail; + + /** + * 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 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.v1.PipelineTaskExecutorDetail.CustomJobDetail; + + /** + * 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.v1.PipelineTaskExecutorDetail.CustomJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomJobDetail to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Represents a PipelineService */ + class PipelineService extends $protobuf.rpc.Service { + + /** + * 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(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * 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; + + /** + * 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.v1.ICreateTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback): void; + + /** + * Calls CreateTrainingPipeline. + * @param request CreateTrainingPipelineRequest message or plain object + * @returns Promise + */ + public createTrainingPipeline(request: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest): Promise; + + /** + * 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.v1.IGetTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback): void; + + /** + * Calls GetTrainingPipeline. + * @param request GetTrainingPipelineRequest message or plain object + * @returns Promise + */ + public getTrainingPipeline(request: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest): Promise; + + /** + * 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.v1.IListTrainingPipelinesRequest, callback: google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback): void; + + /** + * Calls ListTrainingPipelines. + * @param request ListTrainingPipelinesRequest message or plain object + * @returns Promise + */ + public listTrainingPipelines(request: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest): Promise; + + /** + * 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.v1.IDeleteTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback): void; + + /** + * Calls DeleteTrainingPipeline. + * @param request DeleteTrainingPipelineRequest message or plain object + * @returns Promise + */ + public deleteTrainingPipeline(request: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest): Promise; + + /** + * 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.v1.ICancelTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback): void; + + /** + * Calls CancelTrainingPipeline. + * @param request CancelTrainingPipelineRequest message or plain object + * @returns Promise + */ + public cancelTrainingPipeline(request: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest): Promise; + + /** + * 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.v1.ICreatePipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.CreatePipelineJobCallback): void; + + /** + * Calls CreatePipelineJob. + * @param request CreatePipelineJobRequest message or plain object + * @returns Promise + */ + public createPipelineJob(request: google.cloud.aiplatform.v1.ICreatePipelineJobRequest): Promise; + + /** + * Calls GetPipelineJob. + * @param request GetPipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PipelineJob + */ + public getPipelineJob(request: google.cloud.aiplatform.v1.IGetPipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.GetPipelineJobCallback): void; + + /** + * Calls GetPipelineJob. + * @param request GetPipelineJobRequest message or plain object + * @returns Promise + */ + public getPipelineJob(request: google.cloud.aiplatform.v1.IGetPipelineJobRequest): Promise; + + /** + * Calls ListPipelineJobs. + * @param request ListPipelineJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPipelineJobsResponse + */ + public listPipelineJobs(request: google.cloud.aiplatform.v1.IListPipelineJobsRequest, callback: google.cloud.aiplatform.v1.PipelineService.ListPipelineJobsCallback): void; + + /** + * Calls ListPipelineJobs. + * @param request ListPipelineJobsRequest message or plain object + * @returns Promise + */ + public listPipelineJobs(request: google.cloud.aiplatform.v1.IListPipelineJobsRequest): Promise; + + /** + * Calls DeletePipelineJob. + * @param request DeletePipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deletePipelineJob(request: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.DeletePipelineJobCallback): void; + + /** + * Calls DeletePipelineJob. + * @param request DeletePipelineJobRequest message or plain object + * @returns Promise + */ + public deletePipelineJob(request: google.cloud.aiplatform.v1.IDeletePipelineJobRequest): Promise; + + /** + * Calls CancelPipelineJob. + * @param request CancelPipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public cancelPipelineJob(request: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.CancelPipelineJobCallback): void; + + /** + * Calls CancelPipelineJob. + * @param request CancelPipelineJobRequest message or plain object + * @returns Promise + */ + public cancelPipelineJob(request: google.cloud.aiplatform.v1.ICancelPipelineJobRequest): Promise; + } + + namespace PipelineService { + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#createTrainingPipeline}. + * @param error Error, if any + * @param [response] TrainingPipeline + */ + type CreateTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TrainingPipeline) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#getTrainingPipeline}. + * @param error Error, if any + * @param [response] TrainingPipeline + */ + type GetTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TrainingPipeline) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#listTrainingPipelines}. + * @param error Error, if any + * @param [response] ListTrainingPipelinesResponse + */ + type ListTrainingPipelinesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#deleteTrainingPipeline}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteTrainingPipelineCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#cancelTrainingPipeline}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelTrainingPipelineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#createPipelineJob}. + * @param error Error, if any + * @param [response] PipelineJob + */ + type CreatePipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PipelineJob) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#getPipelineJob}. + * @param error Error, if any + * @param [response] PipelineJob + */ + type GetPipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PipelineJob) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#listPipelineJobs}. + * @param error Error, if any + * @param [response] ListPipelineJobsResponse + */ + type ListPipelineJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListPipelineJobsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#deletePipelineJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeletePipelineJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#cancelPipelineJob}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelPipelineJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + } + + /** Properties of a CreateTrainingPipelineRequest. */ + interface ICreateTrainingPipelineRequest { + + /** CreateTrainingPipelineRequest parent */ + parent?: (string|null); + + /** CreateTrainingPipelineRequest trainingPipeline */ + trainingPipeline?: (google.cloud.aiplatform.v1.ITrainingPipeline|null); + } + + /** Represents a CreateTrainingPipelineRequest. */ + class CreateTrainingPipelineRequest implements ICreateTrainingPipelineRequest { + + /** + * Constructs a new CreateTrainingPipelineRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest); + + /** CreateTrainingPipelineRequest parent. */ + public parent: string; + + /** CreateTrainingPipelineRequest trainingPipeline. */ + public trainingPipeline?: (google.cloud.aiplatform.v1.ITrainingPipeline|null); + + /** + * Creates a new CreateTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTrainingPipelineRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; + + /** + * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.v1.CreateTrainingPipelineRequest; + + /** + * 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.v1.CreateTrainingPipelineRequest; + + /** + * 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 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.v1.CreateTrainingPipelineRequest; + + /** + * 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.v1.CreateTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateTrainingPipelineRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetTrainingPipelineRequest. */ + interface IGetTrainingPipelineRequest { + + /** GetTrainingPipelineRequest name */ + name?: (string|null); + } + + /** Represents a GetTrainingPipelineRequest. */ + class GetTrainingPipelineRequest implements IGetTrainingPipelineRequest { + + /** + * Constructs a new GetTrainingPipelineRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest); + + /** GetTrainingPipelineRequest name. */ + public name: string; + + /** + * Creates a new GetTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTrainingPipelineRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest): google.cloud.aiplatform.v1.GetTrainingPipelineRequest; + + /** + * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.v1.GetTrainingPipelineRequest; + + /** + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.v1.GetTrainingPipelineRequest; + + /** + * 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 GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTrainingPipelineRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTrainingPipelineRequest; + + /** + * 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.v1.GetTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTrainingPipelineRequest 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); + + /** ListTrainingPipelinesRequest pageToken */ + pageToken?: (string|null); + + /** ListTrainingPipelinesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListTrainingPipelinesRequest. */ + class ListTrainingPipelinesRequest implements IListTrainingPipelinesRequest { + + /** + * Constructs a new ListTrainingPipelinesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest); + + /** ListTrainingPipelinesRequest parent. */ + public parent: string; + + /** ListTrainingPipelinesRequest filter. */ + public filter: string; + + /** ListTrainingPipelinesRequest pageSize. */ + public pageSize: number; + + /** ListTrainingPipelinesRequest pageToken. */ + public pageToken: string; + + /** ListTrainingPipelinesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|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.v1.IListTrainingPipelinesRequest): google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; + + /** + * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.v1.ListTrainingPipelinesRequest; + + /** + * 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.v1.ListTrainingPipelinesRequest; + + /** + * 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); + + /** + * 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.v1.ListTrainingPipelinesRequest; + + /** + * 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.v1.ListTrainingPipelinesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListTrainingPipelinesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListTrainingPipelinesResponse. */ + interface IListTrainingPipelinesResponse { + + /** ListTrainingPipelinesResponse trainingPipelines */ + trainingPipelines?: (google.cloud.aiplatform.v1.ITrainingPipeline[]|null); + + /** ListTrainingPipelinesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListTrainingPipelinesResponse. */ + class ListTrainingPipelinesResponse implements IListTrainingPipelinesResponse { + + /** + * Constructs a new ListTrainingPipelinesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse); + + /** ListTrainingPipelinesResponse trainingPipelines. */ + public trainingPipelines: google.cloud.aiplatform.v1.ITrainingPipeline[]; + + /** ListTrainingPipelinesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTrainingPipelinesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse): google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; + + /** + * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.ListTrainingPipelinesResponse; + + /** + * 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 + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListTrainingPipelinesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteTrainingPipelineRequest. */ + interface IDeleteTrainingPipelineRequest { + + /** DeleteTrainingPipelineRequest name */ + name?: (string|null); + } + + /** Represents a DeleteTrainingPipelineRequest. */ + class DeleteTrainingPipelineRequest implements IDeleteTrainingPipelineRequest { + + /** + * Constructs a new DeleteTrainingPipelineRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest); + + /** DeleteTrainingPipelineRequest name. */ + public name: string; + + /** + * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTrainingPipelineRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; + + /** + * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @param message DeleteTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @param message DeleteTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; + + /** + * 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 static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; + + /** + * Verifies a DeleteTrainingPipelineRequest message. + * @param message Plain object 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. + * @param object Plain object + * @returns DeleteTrainingPipelineRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; + + /** + * 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 static toObject(message: google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteTrainingPipelineRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CancelTrainingPipelineRequest. */ + interface ICancelTrainingPipelineRequest { + + /** CancelTrainingPipelineRequest name */ + name?: (string|null); + } + + /** Represents a CancelTrainingPipelineRequest. */ + class CancelTrainingPipelineRequest implements ICancelTrainingPipelineRequest { /** - * Calls ListTrainingPipelines. - * @param request ListTrainingPipelinesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse + * Constructs a new CancelTrainingPipelineRequest. + * @param [properties] Properties to set */ - public listTrainingPipelines(request: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, callback: google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback): void; + constructor(properties?: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest); - /** - * Calls ListTrainingPipelines. - * @param request ListTrainingPipelinesRequest message or plain object - * @returns Promise - */ - public listTrainingPipelines(request: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest): Promise; + /** CancelTrainingPipelineRequest name. */ + public name: string; /** - * Calls DeleteTrainingPipeline. - * @param request DeleteTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelTrainingPipelineRequest instance */ - public deleteTrainingPipeline(request: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback): void; + public static create(properties?: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; /** - * Calls DeleteTrainingPipeline. - * @param request DeleteTrainingPipelineRequest message or plain object - * @returns Promise + * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * @param message CancelTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteTrainingPipeline(request: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelTrainingPipeline. - * @param request CancelTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * @param message CancelTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public cancelTrainingPipeline(request: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelTrainingPipeline. - * @param request CancelTrainingPipelineRequest message or plain object - * @returns Promise + * 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 cancelTrainingPipeline(request: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest): Promise; - } - - namespace PipelineService { + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#createTrainingPipeline}. - * @param error Error, if any - * @param [response] TrainingPipeline + * 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 */ - type CreateTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TrainingPipeline) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#getTrainingPipeline}. - * @param error Error, if any - * @param [response] TrainingPipeline + * Verifies a CancelTrainingPipelineRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TrainingPipeline) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#listTrainingPipelines}. - * @param error Error, if any - * @param [response] ListTrainingPipelinesResponse + * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelTrainingPipelineRequest */ - type ListTrainingPipelinesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#deleteTrainingPipeline}. - * @param error Error, if any - * @param [response] Operation + * 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 */ - type DeleteTrainingPipelineCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#cancelTrainingPipeline}. - * @param error Error, if any - * @param [response] Empty + * Converts this CancelTrainingPipelineRequest to JSON. + * @returns JSON object */ - type CancelTrainingPipelineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a CreateTrainingPipelineRequest. */ - interface ICreateTrainingPipelineRequest { + /** Properties of a CreatePipelineJobRequest. */ + interface ICreatePipelineJobRequest { - /** CreateTrainingPipelineRequest parent */ + /** CreatePipelineJobRequest parent */ parent?: (string|null); - /** CreateTrainingPipelineRequest trainingPipeline */ - trainingPipeline?: (google.cloud.aiplatform.v1.ITrainingPipeline|null); + /** CreatePipelineJobRequest pipelineJob */ + pipelineJob?: (google.cloud.aiplatform.v1.IPipelineJob|null); + + /** CreatePipelineJobRequest pipelineJobId */ + pipelineJobId?: (string|null); } - /** Represents a CreateTrainingPipelineRequest. */ - class CreateTrainingPipelineRequest implements ICreateTrainingPipelineRequest { + /** Represents a CreatePipelineJobRequest. */ + class CreatePipelineJobRequest implements ICreatePipelineJobRequest { /** - * Constructs a new CreateTrainingPipelineRequest. + * Constructs a new CreatePipelineJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreatePipelineJobRequest); - /** CreateTrainingPipelineRequest parent. */ + /** CreatePipelineJobRequest parent. */ public parent: string; - /** CreateTrainingPipelineRequest trainingPipeline. */ - public trainingPipeline?: (google.cloud.aiplatform.v1.ITrainingPipeline|null); + /** CreatePipelineJobRequest pipelineJob. */ + public pipelineJob?: (google.cloud.aiplatform.v1.IPipelineJob|null); + + /** CreatePipelineJobRequest pipelineJobId. */ + public pipelineJobId: string; /** - * Creates a new CreateTrainingPipelineRequest instance using the specified properties. + * Creates a new CreatePipelineJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTrainingPipelineRequest instance + * @returns CreatePipelineJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreatePipelineJobRequest): google.cloud.aiplatform.v1.CreatePipelineJobRequest; /** - * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. - * @param message CreateTrainingPipelineRequest message or plain object to encode + * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * @param message CreatePipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. - * @param message CreateTrainingPipelineRequest message or plain object to encode + * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * @param message CreatePipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. + * 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 CreateTrainingPipelineRequest + * @returns CreatePipelineJobRequest * @throws {Error} If the payload is not a reader 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.CreateTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreatePipelineJobRequest; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTrainingPipelineRequest + * @returns CreatePipelineJobRequest * @throws {Error} If the payload is not 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.CreateTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreatePipelineJobRequest; /** - * Verifies a CreateTrainingPipelineRequest message. + * Verifies a CreatePipelineJobRequest message. * @param message Plain object 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 CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTrainingPipelineRequest + * @returns CreatePipelineJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreatePipelineJobRequest; /** - * 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 CreatePipelineJobRequest message. Also converts values to other types if specified. + * @param message CreatePipelineJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreatePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTrainingPipelineRequest to JSON. + * Converts this CreatePipelineJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTrainingPipelineRequest. */ - interface IGetTrainingPipelineRequest { + /** Properties of a GetPipelineJobRequest. */ + interface IGetPipelineJobRequest { - /** GetTrainingPipelineRequest name */ + /** GetPipelineJobRequest name */ name?: (string|null); } - /** Represents a GetTrainingPipelineRequest. */ - class GetTrainingPipelineRequest implements IGetTrainingPipelineRequest { + /** Represents a GetPipelineJobRequest. */ + class GetPipelineJobRequest implements IGetPipelineJobRequest { /** - * Constructs a new GetTrainingPipelineRequest. + * Constructs a new GetPipelineJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1.IGetPipelineJobRequest); - /** GetTrainingPipelineRequest name. */ + /** GetPipelineJobRequest name. */ public name: string; /** - * Creates a new GetTrainingPipelineRequest instance using the specified properties. + * Creates a new GetPipelineJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTrainingPipelineRequest instance + * @returns GetPipelineJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest): google.cloud.aiplatform.v1.GetTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetPipelineJobRequest): google.cloud.aiplatform.v1.GetPipelineJobRequest; /** - * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. - * @param message GetTrainingPipelineRequest message or plain object to encode + * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. - * @param message GetTrainingPipelineRequest message or plain object to encode + * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTrainingPipelineRequest 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 GetTrainingPipelineRequest + * @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.v1.GetTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetPipelineJobRequest; /** - * Decodes a GetTrainingPipelineRequest 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 GetTrainingPipelineRequest + * @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.v1.GetTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetPipelineJobRequest; /** - * Verifies a GetTrainingPipelineRequest 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 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. * @param object Plain object - * @returns GetTrainingPipelineRequest + * @returns GetPipelineJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetPipelineJobRequest; /** - * 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 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.v1.GetTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTrainingPipelineRequest to JSON. + * Converts this GetPipelineJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTrainingPipelinesRequest. */ - interface IListTrainingPipelinesRequest { + /** Properties of a ListPipelineJobsRequest. */ + interface IListPipelineJobsRequest { - /** ListTrainingPipelinesRequest parent */ + /** ListPipelineJobsRequest parent */ parent?: (string|null); - /** ListTrainingPipelinesRequest filter */ + /** ListPipelineJobsRequest filter */ filter?: (string|null); - /** ListTrainingPipelinesRequest pageSize */ + /** ListPipelineJobsRequest pageSize */ pageSize?: (number|null); - /** ListTrainingPipelinesRequest pageToken */ + /** ListPipelineJobsRequest pageToken */ pageToken?: (string|null); - - /** ListTrainingPipelinesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListTrainingPipelinesRequest. */ - class ListTrainingPipelinesRequest implements IListTrainingPipelinesRequest { + /** Represents a ListPipelineJobsRequest. */ + class ListPipelineJobsRequest implements IListPipelineJobsRequest { /** - * Constructs a new ListTrainingPipelinesRequest. + * Constructs a new ListPipelineJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListPipelineJobsRequest); - /** ListTrainingPipelinesRequest parent. */ + /** ListPipelineJobsRequest parent. */ public parent: string; - /** ListTrainingPipelinesRequest filter. */ + /** ListPipelineJobsRequest filter. */ public filter: string; - /** ListTrainingPipelinesRequest pageSize. */ + /** ListPipelineJobsRequest pageSize. */ public pageSize: number; - /** ListTrainingPipelinesRequest pageToken. */ + /** ListPipelineJobsRequest pageToken. */ public pageToken: string; - /** ListTrainingPipelinesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); - /** - * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * Creates a new ListPipelineJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrainingPipelinesRequest instance + * @returns ListPipelineJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest): google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListPipelineJobsRequest): google.cloud.aiplatform.v1.ListPipelineJobsRequest; /** - * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. - * @param message ListTrainingPipelinesRequest message or plain object to encode + * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. - * @param message ListTrainingPipelinesRequest message or plain object to encode + * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrainingPipelinesRequest 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 ListTrainingPipelinesRequest + * @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.v1.ListTrainingPipelinesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListPipelineJobsRequest; /** - * Decodes a ListTrainingPipelinesRequest 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 ListTrainingPipelinesRequest + * @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.v1.ListTrainingPipelinesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListPipelineJobsRequest; /** - * Verifies a ListTrainingPipelinesRequest 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 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. * @param object Plain object - * @returns ListTrainingPipelinesRequest + * @returns ListPipelineJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListPipelineJobsRequest; /** - * 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 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.v1.ListTrainingPipelinesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListPipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrainingPipelinesRequest to JSON. + * Converts this ListPipelineJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTrainingPipelinesResponse. */ - interface IListTrainingPipelinesResponse { + /** Properties of a ListPipelineJobsResponse. */ + interface IListPipelineJobsResponse { - /** ListTrainingPipelinesResponse trainingPipelines */ - trainingPipelines?: (google.cloud.aiplatform.v1.ITrainingPipeline[]|null); + /** ListPipelineJobsResponse pipelineJobs */ + pipelineJobs?: (google.cloud.aiplatform.v1.IPipelineJob[]|null); - /** ListTrainingPipelinesResponse nextPageToken */ + /** ListPipelineJobsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListTrainingPipelinesResponse. */ - class ListTrainingPipelinesResponse implements IListTrainingPipelinesResponse { + /** Represents a ListPipelineJobsResponse. */ + class ListPipelineJobsResponse implements IListPipelineJobsResponse { /** - * Constructs a new ListTrainingPipelinesResponse. + * Constructs a new ListPipelineJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListPipelineJobsResponse); - /** ListTrainingPipelinesResponse trainingPipelines. */ - public trainingPipelines: google.cloud.aiplatform.v1.ITrainingPipeline[]; + /** ListPipelineJobsResponse pipelineJobs. */ + public pipelineJobs: google.cloud.aiplatform.v1.IPipelineJob[]; - /** ListTrainingPipelinesResponse nextPageToken. */ + /** ListPipelineJobsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * Creates a new ListPipelineJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrainingPipelinesResponse instance + * @returns ListPipelineJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse): google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListPipelineJobsResponse): google.cloud.aiplatform.v1.ListPipelineJobsResponse; /** - * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. - * @param message ListTrainingPipelinesResponse message or plain object to encode + * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. - * @param message ListTrainingPipelinesResponse message or plain object to encode + * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrainingPipelinesResponse 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 ListTrainingPipelinesResponse + * @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.v1.ListTrainingPipelinesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListPipelineJobsResponse; /** - * Decodes a ListTrainingPipelinesResponse 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 ListTrainingPipelinesResponse + * @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.v1.ListTrainingPipelinesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListPipelineJobsResponse; /** - * Verifies a ListTrainingPipelinesResponse 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 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. * @param object Plain object - * @returns ListTrainingPipelinesResponse + * @returns ListPipelineJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListPipelineJobsResponse; /** - * 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 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.v1.ListTrainingPipelinesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListPipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrainingPipelinesResponse to JSON. + * Converts this ListPipelineJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteTrainingPipelineRequest. */ - interface IDeleteTrainingPipelineRequest { + /** Properties of a DeletePipelineJobRequest. */ + interface IDeletePipelineJobRequest { - /** DeleteTrainingPipelineRequest name */ + /** DeletePipelineJobRequest name */ name?: (string|null); } - /** Represents a DeleteTrainingPipelineRequest. */ - class DeleteTrainingPipelineRequest implements IDeleteTrainingPipelineRequest { + /** Represents a DeletePipelineJobRequest. */ + class DeletePipelineJobRequest implements IDeletePipelineJobRequest { /** - * Constructs a new DeleteTrainingPipelineRequest. + * Constructs a new DeletePipelineJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1.IDeletePipelineJobRequest); - /** DeleteTrainingPipelineRequest name. */ + /** DeletePipelineJobRequest name. */ public name: string; /** - * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * Creates a new DeletePipelineJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTrainingPipelineRequest instance + * @returns DeletePipelineJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeletePipelineJobRequest): google.cloud.aiplatform.v1.DeletePipelineJobRequest; /** - * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @param message DeleteTrainingPipelineRequest message or plain object to encode + * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @param message DeleteTrainingPipelineRequest message or plain object to encode + * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTrainingPipelineRequest 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 DeleteTrainingPipelineRequest + * @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.v1.DeleteTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeletePipelineJobRequest; /** - * Decodes a DeleteTrainingPipelineRequest 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 DeleteTrainingPipelineRequest + * @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.v1.DeleteTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeletePipelineJobRequest; /** - * Verifies a DeleteTrainingPipelineRequest 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 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. * @param object Plain object - * @returns DeleteTrainingPipelineRequest + * @returns DeletePipelineJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeletePipelineJobRequest; /** - * 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 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.v1.DeleteTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeletePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTrainingPipelineRequest to JSON. + * Converts this DeletePipelineJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CancelTrainingPipelineRequest. */ - interface ICancelTrainingPipelineRequest { + /** Properties of a CancelPipelineJobRequest. */ + interface ICancelPipelineJobRequest { - /** CancelTrainingPipelineRequest name */ + /** CancelPipelineJobRequest name */ name?: (string|null); } - /** Represents a CancelTrainingPipelineRequest. */ - class CancelTrainingPipelineRequest implements ICancelTrainingPipelineRequest { + /** Represents a CancelPipelineJobRequest. */ + class CancelPipelineJobRequest implements ICancelPipelineJobRequest { /** - * Constructs a new CancelTrainingPipelineRequest. + * Constructs a new CancelPipelineJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICancelPipelineJobRequest); - /** CancelTrainingPipelineRequest name. */ + /** CancelPipelineJobRequest name. */ public name: string; /** - * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * Creates a new CancelPipelineJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelTrainingPipelineRequest instance + * @returns CancelPipelineJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICancelPipelineJobRequest): google.cloud.aiplatform.v1.CancelPipelineJobRequest; /** - * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. - * @param message CancelTrainingPipelineRequest message or plain object to encode + * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. - * @param message CancelTrainingPipelineRequest message or plain object to encode + * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelTrainingPipelineRequest 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 CancelTrainingPipelineRequest + * @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.v1.CancelTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CancelPipelineJobRequest; /** - * Decodes a CancelTrainingPipelineRequest 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 CancelTrainingPipelineRequest + * @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.v1.CancelTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CancelPipelineJobRequest; /** - * Verifies a CancelTrainingPipelineRequest 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 CancelTrainingPipelineRequest 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 CancelTrainingPipelineRequest + * @returns CancelPipelineJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelPipelineJobRequest; /** - * 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 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.v1.CancelTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CancelPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelTrainingPipelineRequest to JSON. + * Converts this CancelPipelineJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -23104,6 +25398,9 @@ export namespace google { /** AutoMlTablesInputs exportEvaluatedDataItemsConfig */ exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); + + /** AutoMlTablesInputs additionalExperiments */ + additionalExperiments?: (string[]|null); } /** Represents an AutoMlTablesInputs. */ @@ -23145,6 +25442,9 @@ export namespace google { /** AutoMlTablesInputs exportEvaluatedDataItemsConfig. */ public exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); + /** AutoMlTablesInputs additionalExperiments. */ + public additionalExperiments: string[]; + /** AutoMlTablesInputs additionalOptimizationObjectiveConfig. */ public additionalOptimizationObjectiveConfig?: ("optimizationObjectiveRecallValue"|"optimizationObjectivePrecisionValue"); @@ -25010,7 +27310,9 @@ export namespace google { enum ModelType { MODEL_TYPE_UNSPECIFIED = 0, CLOUD = 1, - MOBILE_VERSATILE_1 = 2 + MOBILE_VERSATILE_1 = 2, + MOBILE_JETSON_VERSATILE_1 = 3, + MOBILE_CORAL_VERSATILE_1 = 4 } } @@ -88290,6 +90592,108 @@ export namespace google { */ public toJSON(): { [k: string]: any }; } + + /** Properties of a HttpBody. */ + interface IHttpBody { + + /** HttpBody contentType */ + contentType?: (string|null); + + /** HttpBody data */ + data?: (Uint8Array|string|null); + + /** HttpBody extensions */ + extensions?: (google.protobuf.IAny[]|null); + } + + /** Represents a HttpBody. */ + class HttpBody implements IHttpBody { + + /** + * Constructs a new HttpBody. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpBody); + + /** HttpBody contentType. */ + public contentType: string; + + /** HttpBody data. */ + public data: (Uint8Array|string); + + /** HttpBody extensions. */ + public extensions: google.protobuf.IAny[]; + + /** + * Creates a new HttpBody instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpBody instance + */ + public static create(properties?: google.api.IHttpBody): google.api.HttpBody; + + /** + * Encodes the specified HttpBody message. Does not implicitly {@link google.api.HttpBody.verify|verify} messages. + * @param message HttpBody message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpBody, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpBody message, length delimited. Does not implicitly {@link google.api.HttpBody.verify|verify} messages. + * @param message HttpBody message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttpBody, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpBody message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpBody + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpBody; + + /** + * Decodes a HttpBody message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpBody + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpBody; + + /** + * Verifies a HttpBody message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HttpBody message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpBody + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpBody; + + /** + * Creates a plain object from a HttpBody message. Also converts values to other types if specified. + * @param message HttpBody + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpBody, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpBody to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } /** Namespace protobuf. */ diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 83ad2cdb2b4..333db4f9bac 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -76,8 +76,7 @@ * @property {number} NVIDIA_TESLA_V100=3 NVIDIA_TESLA_V100 value * @property {number} NVIDIA_TESLA_P4=4 NVIDIA_TESLA_P4 value * @property {number} NVIDIA_TESLA_T4=5 NVIDIA_TESLA_T4 value - * @property {number} TPU_V2=6 TPU_V2 value - * @property {number} TPU_V3=7 TPU_V3 value + * @property {number} NVIDIA_TESLA_A100=8 NVIDIA_TESLA_A100 value */ v1.AcceleratorType = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -87,8 +86,7 @@ values[valuesById[3] = "NVIDIA_TESLA_V100"] = 3; values[valuesById[4] = "NVIDIA_TESLA_P4"] = 4; values[valuesById[5] = "NVIDIA_TESLA_T4"] = 5; - values[valuesById[6] = "TPU_V2"] = 6; - values[valuesById[7] = "TPU_V3"] = 7; + values[valuesById[8] = "NVIDIA_TESLA_A100"] = 8; return values; })(); @@ -1032,44 +1030,31 @@ return AnnotationSpec; })(); - v1.BatchPredictionJob = (function() { + v1.Artifact = (function() { /** - * Properties of a BatchPredictionJob. + * Properties of an Artifact. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchPredictionJob - * @property {string|null} [name] BatchPredictionJob name - * @property {string|null} [displayName] BatchPredictionJob displayName - * @property {string|null} [model] BatchPredictionJob model - * @property {google.cloud.aiplatform.v1.BatchPredictionJob.IInputConfig|null} [inputConfig] BatchPredictionJob inputConfig - * @property {google.protobuf.IValue|null} [modelParameters] BatchPredictionJob modelParameters - * @property {google.cloud.aiplatform.v1.BatchPredictionJob.IOutputConfig|null} [outputConfig] BatchPredictionJob outputConfig - * @property {google.cloud.aiplatform.v1.IBatchDedicatedResources|null} [dedicatedResources] BatchPredictionJob dedicatedResources - * @property {google.cloud.aiplatform.v1.IManualBatchTuningParameters|null} [manualBatchTuningParameters] BatchPredictionJob manualBatchTuningParameters - * @property {google.cloud.aiplatform.v1.BatchPredictionJob.IOutputInfo|null} [outputInfo] BatchPredictionJob outputInfo - * @property {google.cloud.aiplatform.v1.JobState|null} [state] BatchPredictionJob state - * @property {google.rpc.IStatus|null} [error] BatchPredictionJob error - * @property {Array.|null} [partialFailures] BatchPredictionJob partialFailures - * @property {google.cloud.aiplatform.v1.IResourcesConsumed|null} [resourcesConsumed] BatchPredictionJob resourcesConsumed - * @property {google.cloud.aiplatform.v1.ICompletionStats|null} [completionStats] BatchPredictionJob completionStats - * @property {google.protobuf.ITimestamp|null} [createTime] BatchPredictionJob createTime - * @property {google.protobuf.ITimestamp|null} [startTime] BatchPredictionJob startTime - * @property {google.protobuf.ITimestamp|null} [endTime] BatchPredictionJob endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] BatchPredictionJob updateTime - * @property {Object.|null} [labels] BatchPredictionJob labels - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] BatchPredictionJob encryptionSpec + * @interface IArtifact + * @property {string|null} [name] Artifact name + * @property {string|null} [displayName] Artifact displayName + * @property {string|null} [uri] Artifact uri + * @property {string|null} [etag] Artifact etag + * @property {Object.|null} [labels] Artifact labels + * @property {google.protobuf.ITimestamp|null} [createTime] Artifact createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Artifact updateTime + * @property {google.cloud.aiplatform.v1.Artifact.State|null} [state] Artifact state */ /** - * Constructs a new BatchPredictionJob. + * Constructs a new Artifact. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchPredictionJob. - * @implements IBatchPredictionJob + * @classdesc Represents an Artifact. + * @implements IArtifact * @constructor - * @param {google.cloud.aiplatform.v1.IBatchPredictionJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IArtifact=} [properties] Properties to set */ - function BatchPredictionJob(properties) { - this.partialFailures = []; + function Artifact(properties) { this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -1078,262 +1063,141 @@ } /** - * BatchPredictionJob name. + * Artifact name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @memberof google.cloud.aiplatform.v1.Artifact * @instance */ - BatchPredictionJob.prototype.name = ""; + Artifact.prototype.name = ""; /** - * BatchPredictionJob displayName. + * Artifact displayName. * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob - * @instance - */ - BatchPredictionJob.prototype.displayName = ""; - - /** - * BatchPredictionJob model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob - * @instance - */ - BatchPredictionJob.prototype.model = ""; - - /** - * BatchPredictionJob inputConfig. - * @member {google.cloud.aiplatform.v1.BatchPredictionJob.IInputConfig|null|undefined} inputConfig - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob - * @instance - */ - BatchPredictionJob.prototype.inputConfig = null; - - /** - * BatchPredictionJob modelParameters. - * @member {google.protobuf.IValue|null|undefined} modelParameters - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob - * @instance - */ - BatchPredictionJob.prototype.modelParameters = null; - - /** - * BatchPredictionJob outputConfig. - * @member {google.cloud.aiplatform.v1.BatchPredictionJob.IOutputConfig|null|undefined} outputConfig - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob - * @instance - */ - BatchPredictionJob.prototype.outputConfig = null; - - /** - * BatchPredictionJob dedicatedResources. - * @member {google.cloud.aiplatform.v1.IBatchDedicatedResources|null|undefined} dedicatedResources - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob - * @instance - */ - BatchPredictionJob.prototype.dedicatedResources = null; - - /** - * BatchPredictionJob manualBatchTuningParameters. - * @member {google.cloud.aiplatform.v1.IManualBatchTuningParameters|null|undefined} manualBatchTuningParameters - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob - * @instance - */ - BatchPredictionJob.prototype.manualBatchTuningParameters = null; - - /** - * BatchPredictionJob outputInfo. - * @member {google.cloud.aiplatform.v1.BatchPredictionJob.IOutputInfo|null|undefined} outputInfo - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob - * @instance - */ - BatchPredictionJob.prototype.outputInfo = null; - - /** - * BatchPredictionJob state. - * @member {google.cloud.aiplatform.v1.JobState} state - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @memberof google.cloud.aiplatform.v1.Artifact * @instance */ - BatchPredictionJob.prototype.state = 0; - - /** - * BatchPredictionJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob - * @instance - */ - BatchPredictionJob.prototype.error = null; + Artifact.prototype.displayName = ""; /** - * BatchPredictionJob partialFailures. - * @member {Array.} partialFailures - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * Artifact uri. + * @member {string} uri + * @memberof google.cloud.aiplatform.v1.Artifact * @instance */ - BatchPredictionJob.prototype.partialFailures = $util.emptyArray; + Artifact.prototype.uri = ""; /** - * BatchPredictionJob resourcesConsumed. - * @member {google.cloud.aiplatform.v1.IResourcesConsumed|null|undefined} resourcesConsumed - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * Artifact etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.Artifact * @instance */ - BatchPredictionJob.prototype.resourcesConsumed = null; + Artifact.prototype.etag = ""; /** - * BatchPredictionJob completionStats. - * @member {google.cloud.aiplatform.v1.ICompletionStats|null|undefined} completionStats - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * Artifact labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.Artifact * @instance */ - BatchPredictionJob.prototype.completionStats = null; + Artifact.prototype.labels = $util.emptyObject; /** - * BatchPredictionJob createTime. + * Artifact createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob - * @instance - */ - BatchPredictionJob.prototype.createTime = null; - - /** - * BatchPredictionJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob - * @instance - */ - BatchPredictionJob.prototype.startTime = null; - - /** - * BatchPredictionJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @memberof google.cloud.aiplatform.v1.Artifact * @instance */ - BatchPredictionJob.prototype.endTime = null; + Artifact.prototype.createTime = null; /** - * BatchPredictionJob updateTime. + * Artifact updateTime. * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @memberof google.cloud.aiplatform.v1.Artifact * @instance */ - BatchPredictionJob.prototype.updateTime = null; - - /** - * BatchPredictionJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob - * @instance - */ - BatchPredictionJob.prototype.labels = $util.emptyObject; + Artifact.prototype.updateTime = null; /** - * BatchPredictionJob encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * Artifact state. + * @member {google.cloud.aiplatform.v1.Artifact.State} state + * @memberof google.cloud.aiplatform.v1.Artifact * @instance */ - BatchPredictionJob.prototype.encryptionSpec = null; + Artifact.prototype.state = 0; /** - * Creates a new BatchPredictionJob instance using the specified properties. + * Creates a new Artifact instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @memberof google.cloud.aiplatform.v1.Artifact * @static - * @param {google.cloud.aiplatform.v1.IBatchPredictionJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchPredictionJob} BatchPredictionJob instance + * @param {google.cloud.aiplatform.v1.IArtifact=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Artifact} Artifact instance */ - BatchPredictionJob.create = function create(properties) { - return new BatchPredictionJob(properties); + Artifact.create = function create(properties) { + return new Artifact(properties); }; /** - * Encodes the specified BatchPredictionJob message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchPredictionJob.verify|verify} messages. + * Encodes the specified Artifact message. Does not implicitly {@link google.cloud.aiplatform.v1.Artifact.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @memberof google.cloud.aiplatform.v1.Artifact * @static - * @param {google.cloud.aiplatform.v1.IBatchPredictionJob} message BatchPredictionJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IArtifact} message Artifact message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchPredictionJob.encode = function encode(message, writer) { + Artifact.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.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); - if (message.inputConfig != null && Object.hasOwnProperty.call(message, "inputConfig")) - $root.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.encode(message.inputConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.modelParameters != null && Object.hasOwnProperty.call(message, "modelParameters")) - $root.google.protobuf.Value.encode(message.modelParameters, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.outputConfig != null && Object.hasOwnProperty.call(message, "outputConfig")) - $root.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.encode(message.outputConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) - $root.google.cloud.aiplatform.v1.BatchDedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.manualBatchTuningParameters != null && Object.hasOwnProperty.call(message, "manualBatchTuningParameters")) - $root.google.cloud.aiplatform.v1.ManualBatchTuningParameters.encode(message.manualBatchTuningParameters, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.outputInfo != null && Object.hasOwnProperty.call(message, "outputInfo")) - $root.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo.encode(message.outputInfo, 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.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 11, wireType 2 =*/90).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 12, wireType 2 =*/98).fork()).ldelim(); - if (message.resourcesConsumed != null && Object.hasOwnProperty.call(message, "resourcesConsumed")) - $root.google.cloud.aiplatform.v1.ResourcesConsumed.encode(message.resourcesConsumed, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.completionStats != null && Object.hasOwnProperty.call(message, "completionStats")) - $root.google.cloud.aiplatform.v1.CompletionStats.encode(message.completionStats, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.uri); + 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 19, wireType 2 =*/154).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + 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.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.state); return writer; }; /** - * Encodes the specified BatchPredictionJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchPredictionJob.verify|verify} messages. + * Encodes the specified Artifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Artifact.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @memberof google.cloud.aiplatform.v1.Artifact * @static - * @param {google.cloud.aiplatform.v1.IBatchPredictionJob} message BatchPredictionJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IArtifact} message Artifact message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchPredictionJob.encodeDelimited = function encodeDelimited(message, writer) { + Artifact.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchPredictionJob message from the specified reader or buffer. + * Decodes an Artifact message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @memberof google.cloud.aiplatform.v1.Artifact * @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.BatchPredictionJob} BatchPredictionJob + * @returns {google.cloud.aiplatform.v1.Artifact} Artifact * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchPredictionJob.decode = function decode(reader, length) { + Artifact.decode = function decode(reader, 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.BatchPredictionJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Artifact(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -1343,57 +1207,884 @@ case 2: message.displayName = reader.string(); break; - case 3: - message.model = reader.string(); - break; - case 4: - message.inputConfig = $root.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.decode(reader, reader.uint32()); - break; - case 5: - message.modelParameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; case 6: - message.outputConfig = $root.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.decode(reader, reader.uint32()); - break; - case 7: - message.dedicatedResources = $root.google.cloud.aiplatform.v1.BatchDedicatedResources.decode(reader, reader.uint32()); - break; - case 8: - message.manualBatchTuningParameters = $root.google.cloud.aiplatform.v1.ManualBatchTuningParameters.decode(reader, reader.uint32()); + message.uri = reader.string(); break; case 9: - message.outputInfo = $root.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo.decode(reader, reader.uint32()); + message.etag = reader.string(); break; case 10: - message.state = reader.int32(); - break; - case 11: - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - case 12: - if (!(message.partialFailures && message.partialFailures.length)) - message.partialFailures = []; - message.partialFailures.push($root.google.rpc.Status.decode(reader, reader.uint32())); - break; - case 13: - message.resourcesConsumed = $root.google.cloud.aiplatform.v1.ResourcesConsumed.decode(reader, reader.uint32()); - break; - case 14: - message.completionStats = $root.google.cloud.aiplatform.v1.CompletionStats.decode(reader, reader.uint32()); - break; - case 15: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 16: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 17: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 18: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 19: + 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.state = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Artifact message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Artifact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Artifact} Artifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Artifact.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Artifact message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Artifact + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Artifact.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.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: 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.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an Artifact message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Artifact + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Artifact} Artifact + */ + Artifact.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Artifact) + return object; + var message = new $root.google.cloud.aiplatform.v1.Artifact(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.uri != null) + message.uri = String(object.uri); + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Artifact.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.v1.Artifact.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Artifact.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 "LIVE": + case 2: + message.state = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an Artifact message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Artifact + * @static + * @param {google.cloud.aiplatform.v1.Artifact} message Artifact + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Artifact.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.uri = ""; + object.etag = ""; + object.createTime = null; + object.updateTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 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.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + 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.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.Artifact.State[message.state] : message.state; + return object; + }; + + /** + * Converts this Artifact to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Artifact + * @instance + * @returns {Object.} JSON object + */ + Artifact.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * State enum. + * @name google.cloud.aiplatform.v1.Artifact.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} LIVE=2 LIVE value + */ + Artifact.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "LIVE"] = 2; + return values; + })(); + + return Artifact; + })(); + + v1.Value = (function() { + + /** + * Properties of a Value. + * @memberof google.cloud.aiplatform.v1 + * @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.v1 + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {google.cloud.aiplatform.v1.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.v1.Value + * @instance + */ + Value.prototype.intValue = null; + + /** + * Value doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.cloud.aiplatform.v1.Value + * @instance + */ + Value.prototype.doubleValue = null; + + /** + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.cloud.aiplatform.v1.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.v1.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.v1.Value + * @static + * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Value} Value instance + */ + Value.create = function create(properties) { + return new Value(properties); + }; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Value + * @static + * @param {google.cloud.aiplatform.v1.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.v1.Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Value + * @static + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.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.v1.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.v1.Value + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Value} Value + */ + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Value) + return object; + var message = new $root.google.cloud.aiplatform.v1.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.v1.Value + * @static + * @param {google.cloud.aiplatform.v1.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.v1.Value + * @instance + * @returns {Object.} JSON object + */ + Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Value; + })(); + + v1.BatchPredictionJob = (function() { + + /** + * Properties of a BatchPredictionJob. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchPredictionJob + * @property {string|null} [name] BatchPredictionJob name + * @property {string|null} [displayName] BatchPredictionJob displayName + * @property {string|null} [model] BatchPredictionJob model + * @property {google.cloud.aiplatform.v1.BatchPredictionJob.IInputConfig|null} [inputConfig] BatchPredictionJob inputConfig + * @property {google.protobuf.IValue|null} [modelParameters] BatchPredictionJob modelParameters + * @property {google.cloud.aiplatform.v1.BatchPredictionJob.IOutputConfig|null} [outputConfig] BatchPredictionJob outputConfig + * @property {google.cloud.aiplatform.v1.IBatchDedicatedResources|null} [dedicatedResources] BatchPredictionJob dedicatedResources + * @property {google.cloud.aiplatform.v1.IManualBatchTuningParameters|null} [manualBatchTuningParameters] BatchPredictionJob manualBatchTuningParameters + * @property {google.cloud.aiplatform.v1.BatchPredictionJob.IOutputInfo|null} [outputInfo] BatchPredictionJob outputInfo + * @property {google.cloud.aiplatform.v1.JobState|null} [state] BatchPredictionJob state + * @property {google.rpc.IStatus|null} [error] BatchPredictionJob error + * @property {Array.|null} [partialFailures] BatchPredictionJob partialFailures + * @property {google.cloud.aiplatform.v1.IResourcesConsumed|null} [resourcesConsumed] BatchPredictionJob resourcesConsumed + * @property {google.cloud.aiplatform.v1.ICompletionStats|null} [completionStats] BatchPredictionJob completionStats + * @property {google.protobuf.ITimestamp|null} [createTime] BatchPredictionJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] BatchPredictionJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] BatchPredictionJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] BatchPredictionJob updateTime + * @property {Object.|null} [labels] BatchPredictionJob labels + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] BatchPredictionJob encryptionSpec + */ + + /** + * Constructs a new BatchPredictionJob. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchPredictionJob. + * @implements IBatchPredictionJob + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchPredictionJob=} [properties] Properties to set + */ + function BatchPredictionJob(properties) { + this.partialFailures = []; + 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]]; + } + + /** + * BatchPredictionJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.name = ""; + + /** + * BatchPredictionJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.displayName = ""; + + /** + * BatchPredictionJob model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.model = ""; + + /** + * BatchPredictionJob inputConfig. + * @member {google.cloud.aiplatform.v1.BatchPredictionJob.IInputConfig|null|undefined} inputConfig + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.inputConfig = null; + + /** + * BatchPredictionJob modelParameters. + * @member {google.protobuf.IValue|null|undefined} modelParameters + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.modelParameters = null; + + /** + * BatchPredictionJob outputConfig. + * @member {google.cloud.aiplatform.v1.BatchPredictionJob.IOutputConfig|null|undefined} outputConfig + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.outputConfig = null; + + /** + * BatchPredictionJob dedicatedResources. + * @member {google.cloud.aiplatform.v1.IBatchDedicatedResources|null|undefined} dedicatedResources + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.dedicatedResources = null; + + /** + * BatchPredictionJob manualBatchTuningParameters. + * @member {google.cloud.aiplatform.v1.IManualBatchTuningParameters|null|undefined} manualBatchTuningParameters + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.manualBatchTuningParameters = null; + + /** + * BatchPredictionJob outputInfo. + * @member {google.cloud.aiplatform.v1.BatchPredictionJob.IOutputInfo|null|undefined} outputInfo + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.outputInfo = null; + + /** + * BatchPredictionJob state. + * @member {google.cloud.aiplatform.v1.JobState} state + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.state = 0; + + /** + * BatchPredictionJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.error = null; + + /** + * BatchPredictionJob partialFailures. + * @member {Array.} partialFailures + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.partialFailures = $util.emptyArray; + + /** + * BatchPredictionJob resourcesConsumed. + * @member {google.cloud.aiplatform.v1.IResourcesConsumed|null|undefined} resourcesConsumed + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.resourcesConsumed = null; + + /** + * BatchPredictionJob completionStats. + * @member {google.cloud.aiplatform.v1.ICompletionStats|null|undefined} completionStats + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.completionStats = null; + + /** + * BatchPredictionJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.createTime = null; + + /** + * BatchPredictionJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.startTime = null; + + /** + * BatchPredictionJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.endTime = null; + + /** + * BatchPredictionJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.updateTime = null; + + /** + * BatchPredictionJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.labels = $util.emptyObject; + + /** + * BatchPredictionJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.encryptionSpec = null; + + /** + * Creates a new BatchPredictionJob instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @static + * @param {google.cloud.aiplatform.v1.IBatchPredictionJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchPredictionJob} BatchPredictionJob instance + */ + BatchPredictionJob.create = function create(properties) { + return new BatchPredictionJob(properties); + }; + + /** + * Encodes the specified BatchPredictionJob message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchPredictionJob.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @static + * @param {google.cloud.aiplatform.v1.IBatchPredictionJob} message BatchPredictionJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchPredictionJob.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.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); + if (message.inputConfig != null && Object.hasOwnProperty.call(message, "inputConfig")) + $root.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.encode(message.inputConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.modelParameters != null && Object.hasOwnProperty.call(message, "modelParameters")) + $root.google.protobuf.Value.encode(message.modelParameters, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.outputConfig != null && Object.hasOwnProperty.call(message, "outputConfig")) + $root.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.encode(message.outputConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) + $root.google.cloud.aiplatform.v1.BatchDedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.manualBatchTuningParameters != null && Object.hasOwnProperty.call(message, "manualBatchTuningParameters")) + $root.google.cloud.aiplatform.v1.ManualBatchTuningParameters.encode(message.manualBatchTuningParameters, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.outputInfo != null && Object.hasOwnProperty.call(message, "outputInfo")) + $root.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo.encode(message.outputInfo, 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.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 11, wireType 2 =*/90).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 12, wireType 2 =*/98).fork()).ldelim(); + if (message.resourcesConsumed != null && Object.hasOwnProperty.call(message, "resourcesConsumed")) + $root.google.cloud.aiplatform.v1.ResourcesConsumed.encode(message.resourcesConsumed, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.completionStats != null && Object.hasOwnProperty.call(message, "completionStats")) + $root.google.cloud.aiplatform.v1.CompletionStats.encode(message.completionStats, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 18, wireType 2 =*/146).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 19, wireType 2 =*/154).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchPredictionJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchPredictionJob.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @static + * @param {google.cloud.aiplatform.v1.IBatchPredictionJob} message BatchPredictionJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchPredictionJob.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchPredictionJob message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @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.BatchPredictionJob} BatchPredictionJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchPredictionJob.decode = function decode(reader, 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.BatchPredictionJob(), 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.model = reader.string(); + break; + case 4: + message.inputConfig = $root.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.decode(reader, reader.uint32()); + break; + case 5: + message.modelParameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 6: + message.outputConfig = $root.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.decode(reader, reader.uint32()); + break; + case 7: + message.dedicatedResources = $root.google.cloud.aiplatform.v1.BatchDedicatedResources.decode(reader, reader.uint32()); + break; + case 8: + message.manualBatchTuningParameters = $root.google.cloud.aiplatform.v1.ManualBatchTuningParameters.decode(reader, reader.uint32()); + break; + case 9: + message.outputInfo = $root.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo.decode(reader, reader.uint32()); + break; + case 10: + message.state = reader.int32(); + break; + case 11: + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + case 12: + if (!(message.partialFailures && message.partialFailures.length)) + message.partialFailures = []; + message.partialFailures.push($root.google.rpc.Status.decode(reader, reader.uint32())); + break; + case 13: + message.resourcesConsumed = $root.google.cloud.aiplatform.v1.ResourcesConsumed.decode(reader, reader.uint32()); + break; + case 14: + message.completionStats = $root.google.cloud.aiplatform.v1.CompletionStats.decode(reader, reader.uint32()); + break; + case 15: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 16: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 17: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 18: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 19: if (message.labels === $util.emptyObject) message.labels = {}; var end2 = reader.uint32() + reader.pos; @@ -1505,6 +2196,7 @@ case 6: case 7: case 8: + case 9: break; } if (message.error != null && message.hasOwnProperty("error")) { @@ -1652,6 +2344,10 @@ case 8: message.state = 8; break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; } if (object.error != null) { if (typeof object.error !== "object") @@ -2355,6 +3051,7 @@ * @interface IOutputInfo * @property {string|null} [gcsOutputDirectory] OutputInfo gcsOutputDirectory * @property {string|null} [bigqueryOutputDataset] OutputInfo bigqueryOutputDataset + * @property {string|null} [bigqueryOutputTable] OutputInfo bigqueryOutputTable */ /** @@ -2388,6 +3085,14 @@ */ OutputInfo.prototype.bigqueryOutputDataset = null; + /** + * OutputInfo bigqueryOutputTable. + * @member {string} bigqueryOutputTable + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo + * @instance + */ + OutputInfo.prototype.bigqueryOutputTable = ""; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -2430,6 +3135,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsOutputDirectory); if (message.bigqueryOutputDataset != null && Object.hasOwnProperty.call(message, "bigqueryOutputDataset")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.bigqueryOutputDataset); + if (message.bigqueryOutputTable != null && Object.hasOwnProperty.call(message, "bigqueryOutputTable")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.bigqueryOutputTable); return writer; }; @@ -2470,6 +3177,9 @@ case 2: message.bigqueryOutputDataset = reader.string(); break; + case 4: + message.bigqueryOutputTable = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -2518,6 +3228,9 @@ if (!$util.isString(message.bigqueryOutputDataset)) return "bigqueryOutputDataset: string expected"; } + if (message.bigqueryOutputTable != null && message.hasOwnProperty("bigqueryOutputTable")) + if (!$util.isString(message.bigqueryOutputTable)) + return "bigqueryOutputTable: string expected"; return null; }; @@ -2537,6 +3250,8 @@ message.gcsOutputDirectory = String(object.gcsOutputDirectory); if (object.bigqueryOutputDataset != null) message.bigqueryOutputDataset = String(object.bigqueryOutputDataset); + if (object.bigqueryOutputTable != null) + message.bigqueryOutputTable = String(object.bigqueryOutputTable); return message; }; @@ -2553,6 +3268,8 @@ if (!options) options = {}; var object = {}; + if (options.defaults) + object.bigqueryOutputTable = ""; if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) { object.gcsOutputDirectory = message.gcsOutputDirectory; if (options.oneofs) @@ -2563,6 +3280,8 @@ if (options.oneofs) object.outputLocation = "bigqueryOutputDataset"; } + if (message.bigqueryOutputTable != null && message.hasOwnProperty("bigqueryOutputTable")) + object.bigqueryOutputTable = message.bigqueryOutputTable; return object; }; @@ -4008,6 +4727,7 @@ * @property {number} JOB_STATE_CANCELLING=6 JOB_STATE_CANCELLING value * @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 */ v1.JobState = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -4020,6 +4740,7 @@ values[valuesById[6] = "JOB_STATE_CANCELLING"] = 6; values[valuesById[7] = "JOB_STATE_CANCELLED"] = 7; values[valuesById[8] = "JOB_STATE_PAUSED"] = 8; + values[valuesById[9] = "JOB_STATE_EXPIRED"] = 9; return values; })(); @@ -4194,8 +4915,7 @@ case 3: case 4: case 5: - case 6: - case 7: + case 8: break; } if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) @@ -4243,13 +4963,9 @@ case 5: message.acceleratorType = 5; break; - case "TPU_V2": - case 6: - message.acceleratorType = 6; - break; - case "TPU_V3": - case 7: - message.acceleratorType = 7; + case "NVIDIA_TESLA_A100": + case 8: + message.acceleratorType = 8; break; } if (object.acceleratorCount != null) @@ -4307,6 +5023,7 @@ * @property {google.cloud.aiplatform.v1.IMachineSpec|null} [machineSpec] DedicatedResources machineSpec * @property {number|null} [minReplicaCount] DedicatedResources minReplicaCount * @property {number|null} [maxReplicaCount] DedicatedResources maxReplicaCount + * @property {Array.|null} [autoscalingMetricSpecs] DedicatedResources autoscalingMetricSpecs */ /** @@ -4318,6 +5035,7 @@ * @param {google.cloud.aiplatform.v1.IDedicatedResources=} [properties] Properties to set */ function DedicatedResources(properties) { + this.autoscalingMetricSpecs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4348,6 +5066,14 @@ */ DedicatedResources.prototype.maxReplicaCount = 0; + /** + * DedicatedResources autoscalingMetricSpecs. + * @member {Array.} autoscalingMetricSpecs + * @memberof google.cloud.aiplatform.v1.DedicatedResources + * @instance + */ + DedicatedResources.prototype.autoscalingMetricSpecs = $util.emptyArray; + /** * Creates a new DedicatedResources instance using the specified properties. * @function create @@ -4378,6 +5104,9 @@ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minReplicaCount); if (message.maxReplicaCount != null && Object.hasOwnProperty.call(message, "maxReplicaCount")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxReplicaCount); + if (message.autoscalingMetricSpecs != null && message.autoscalingMetricSpecs.length) + for (var i = 0; i < message.autoscalingMetricSpecs.length; ++i) + $root.google.cloud.aiplatform.v1.AutoscalingMetricSpec.encode(message.autoscalingMetricSpecs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -4421,6 +5150,11 @@ case 3: message.maxReplicaCount = reader.int32(); break; + case 4: + if (!(message.autoscalingMetricSpecs && message.autoscalingMetricSpecs.length)) + message.autoscalingMetricSpecs = []; + message.autoscalingMetricSpecs.push($root.google.cloud.aiplatform.v1.AutoscalingMetricSpec.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -4467,6 +5201,15 @@ if (message.maxReplicaCount != null && message.hasOwnProperty("maxReplicaCount")) if (!$util.isInteger(message.maxReplicaCount)) return "maxReplicaCount: integer expected"; + if (message.autoscalingMetricSpecs != null && message.hasOwnProperty("autoscalingMetricSpecs")) { + if (!Array.isArray(message.autoscalingMetricSpecs)) + return "autoscalingMetricSpecs: array expected"; + for (var i = 0; i < message.autoscalingMetricSpecs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.AutoscalingMetricSpec.verify(message.autoscalingMetricSpecs[i]); + if (error) + return "autoscalingMetricSpecs." + error; + } + } return null; }; @@ -4491,6 +5234,16 @@ message.minReplicaCount = object.minReplicaCount | 0; if (object.maxReplicaCount != null) message.maxReplicaCount = object.maxReplicaCount | 0; + if (object.autoscalingMetricSpecs) { + if (!Array.isArray(object.autoscalingMetricSpecs)) + throw TypeError(".google.cloud.aiplatform.v1.DedicatedResources.autoscalingMetricSpecs: array expected"); + message.autoscalingMetricSpecs = []; + for (var i = 0; i < object.autoscalingMetricSpecs.length; ++i) { + if (typeof object.autoscalingMetricSpecs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DedicatedResources.autoscalingMetricSpecs: object expected"); + message.autoscalingMetricSpecs[i] = $root.google.cloud.aiplatform.v1.AutoscalingMetricSpec.fromObject(object.autoscalingMetricSpecs[i]); + } + } return message; }; @@ -4507,6 +5260,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.autoscalingMetricSpecs = []; if (options.defaults) { object.machineSpec = null; object.minReplicaCount = 0; @@ -4518,6 +5273,11 @@ object.minReplicaCount = message.minReplicaCount; if (message.maxReplicaCount != null && message.hasOwnProperty("maxReplicaCount")) object.maxReplicaCount = message.maxReplicaCount; + if (message.autoscalingMetricSpecs && message.autoscalingMetricSpecs.length) { + object.autoscalingMetricSpecs = []; + for (var j = 0; j < message.autoscalingMetricSpecs.length; ++j) + object.autoscalingMetricSpecs[j] = $root.google.cloud.aiplatform.v1.AutoscalingMetricSpec.toObject(message.autoscalingMetricSpecs[j], options); + } return object; }; @@ -5379,6 +6139,216 @@ return DiskSpec; })(); + v1.AutoscalingMetricSpec = (function() { + + /** + * Properties of an AutoscalingMetricSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IAutoscalingMetricSpec + * @property {string|null} [metricName] AutoscalingMetricSpec metricName + * @property {number|null} [target] AutoscalingMetricSpec target + */ + + /** + * Constructs a new AutoscalingMetricSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an AutoscalingMetricSpec. + * @implements IAutoscalingMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IAutoscalingMetricSpec=} [properties] Properties to set + */ + function AutoscalingMetricSpec(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]]; + } + + /** + * AutoscalingMetricSpec metricName. + * @member {string} metricName + * @memberof google.cloud.aiplatform.v1.AutoscalingMetricSpec + * @instance + */ + AutoscalingMetricSpec.prototype.metricName = ""; + + /** + * AutoscalingMetricSpec target. + * @member {number} target + * @memberof google.cloud.aiplatform.v1.AutoscalingMetricSpec + * @instance + */ + AutoscalingMetricSpec.prototype.target = 0; + + /** + * Creates a new AutoscalingMetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.AutoscalingMetricSpec + * @static + * @param {google.cloud.aiplatform.v1.IAutoscalingMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AutoscalingMetricSpec} AutoscalingMetricSpec instance + */ + AutoscalingMetricSpec.create = function create(properties) { + return new AutoscalingMetricSpec(properties); + }; + + /** + * Encodes the specified AutoscalingMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.AutoscalingMetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.AutoscalingMetricSpec + * @static + * @param {google.cloud.aiplatform.v1.IAutoscalingMetricSpec} message AutoscalingMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoscalingMetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricName != null && Object.hasOwnProperty.call(message, "metricName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricName); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.target); + return writer; + }; + + /** + * Encodes the specified AutoscalingMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AutoscalingMetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.AutoscalingMetricSpec + * @static + * @param {google.cloud.aiplatform.v1.IAutoscalingMetricSpec} message AutoscalingMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoscalingMetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoscalingMetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.AutoscalingMetricSpec + * @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.AutoscalingMetricSpec} AutoscalingMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoscalingMetricSpec.decode = function decode(reader, 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.AutoscalingMetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metricName = reader.string(); + break; + case 2: + message.target = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoscalingMetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.AutoscalingMetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.AutoscalingMetricSpec} AutoscalingMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoscalingMetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoscalingMetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.AutoscalingMetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoscalingMetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricName != null && message.hasOwnProperty("metricName")) + if (!$util.isString(message.metricName)) + return "metricName: string expected"; + if (message.target != null && message.hasOwnProperty("target")) + if (!$util.isInteger(message.target)) + return "target: integer expected"; + return null; + }; + + /** + * Creates an AutoscalingMetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.AutoscalingMetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.AutoscalingMetricSpec} AutoscalingMetricSpec + */ + AutoscalingMetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AutoscalingMetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.AutoscalingMetricSpec(); + if (object.metricName != null) + message.metricName = String(object.metricName); + if (object.target != null) + message.target = object.target | 0; + return message; + }; + + /** + * Creates a plain object from an AutoscalingMetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.AutoscalingMetricSpec + * @static + * @param {google.cloud.aiplatform.v1.AutoscalingMetricSpec} message AutoscalingMetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoscalingMetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricName = ""; + object.target = 0; + } + if (message.metricName != null && message.hasOwnProperty("metricName")) + object.metricName = message.metricName; + if (message.target != null && message.hasOwnProperty("target")) + object.target = message.target; + return object; + }; + + /** + * Converts this AutoscalingMetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.AutoscalingMetricSpec + * @instance + * @returns {Object.} JSON object + */ + AutoscalingMetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoscalingMetricSpec; + })(); + v1.ManualBatchTuningParameters = (function() { /** @@ -5566,35 +6536,32 @@ return ManualBatchTuningParameters; })(); - v1.CustomJob = (function() { + v1.Context = (function() { /** - * Properties of a CustomJob. + * Properties of a Context. * @memberof google.cloud.aiplatform.v1 - * @interface ICustomJob - * @property {string|null} [name] CustomJob name - * @property {string|null} [displayName] CustomJob displayName - * @property {google.cloud.aiplatform.v1.ICustomJobSpec|null} [jobSpec] CustomJob jobSpec - * @property {google.cloud.aiplatform.v1.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.v1.IEncryptionSpec|null} [encryptionSpec] CustomJob encryptionSpec + * @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 */ /** - * Constructs a new CustomJob. + * Constructs a new Context. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CustomJob. - * @implements ICustomJob + * @classdesc Represents a Context. + * @implements IContext * @constructor - * @param {google.cloud.aiplatform.v1.ICustomJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IContext=} [properties] Properties to set */ - function CustomJob(properties) { + function Context(properties) { this.labels = {}; + this.parentContexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5602,171 +6569,132 @@ } /** - * CustomJob name. + * Context name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.CustomJob + * @memberof google.cloud.aiplatform.v1.Context * @instance */ - CustomJob.prototype.name = ""; + Context.prototype.name = ""; /** - * CustomJob displayName. + * Context displayName. * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.CustomJob + * @memberof google.cloud.aiplatform.v1.Context * @instance */ - CustomJob.prototype.displayName = ""; + Context.prototype.displayName = ""; /** - * CustomJob jobSpec. - * @member {google.cloud.aiplatform.v1.ICustomJobSpec|null|undefined} jobSpec - * @memberof google.cloud.aiplatform.v1.CustomJob + * Context etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.Context * @instance */ - CustomJob.prototype.jobSpec = null; + Context.prototype.etag = ""; /** - * CustomJob state. - * @member {google.cloud.aiplatform.v1.JobState} state - * @memberof google.cloud.aiplatform.v1.CustomJob + * Context labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.Context * @instance */ - CustomJob.prototype.state = 0; + Context.prototype.labels = $util.emptyObject; /** - * CustomJob createTime. + * Context createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.CustomJob + * @memberof google.cloud.aiplatform.v1.Context * @instance */ - CustomJob.prototype.createTime = null; - - /** - * CustomJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.CustomJob - * @instance - */ - CustomJob.prototype.startTime = null; - - /** - * CustomJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.CustomJob - * @instance - */ - CustomJob.prototype.endTime = null; + Context.prototype.createTime = null; /** - * CustomJob updateTime. + * Context updateTime. * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.CustomJob - * @instance - */ - CustomJob.prototype.updateTime = null; - - /** - * CustomJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.CustomJob - * @instance - */ - CustomJob.prototype.error = null; - - /** - * CustomJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.CustomJob + * @memberof google.cloud.aiplatform.v1.Context * @instance */ - CustomJob.prototype.labels = $util.emptyObject; + Context.prototype.updateTime = null; /** - * CustomJob encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.CustomJob + * Context parentContexts. + * @member {Array.} parentContexts + * @memberof google.cloud.aiplatform.v1.Context * @instance */ - CustomJob.prototype.encryptionSpec = null; + Context.prototype.parentContexts = $util.emptyArray; /** - * Creates a new CustomJob instance using the specified properties. + * Creates a new Context instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CustomJob + * @memberof google.cloud.aiplatform.v1.Context * @static - * @param {google.cloud.aiplatform.v1.ICustomJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CustomJob} CustomJob instance + * @param {google.cloud.aiplatform.v1.IContext=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Context} Context instance */ - CustomJob.create = function create(properties) { - return new CustomJob(properties); + Context.create = function create(properties) { + return new Context(properties); }; /** - * Encodes the specified CustomJob message. Does not implicitly {@link google.cloud.aiplatform.v1.CustomJob.verify|verify} messages. + * Encodes the specified Context message. Does not implicitly {@link google.cloud.aiplatform.v1.Context.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CustomJob + * @memberof google.cloud.aiplatform.v1.Context * @static - * @param {google.cloud.aiplatform.v1.ICustomJob} message CustomJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IContext} message Context message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomJob.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.jobSpec != null && Object.hasOwnProperty.call(message, "jobSpec")) - $root.google.cloud.aiplatform.v1.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.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 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.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 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]); return writer; }; /** - * Encodes the specified CustomJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CustomJob.verify|verify} messages. + * Encodes the specified Context message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Context.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CustomJob + * @memberof google.cloud.aiplatform.v1.Context * @static - * @param {google.cloud.aiplatform.v1.ICustomJob} message CustomJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IContext} message Context message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomJob.encodeDelimited = function encodeDelimited(message, writer) { + Context.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomJob message from the specified reader or buffer. + * Decodes a Context message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CustomJob + * @memberof google.cloud.aiplatform.v1.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.v1.CustomJob} CustomJob + * @returns {google.cloud.aiplatform.v1.Context} Context * @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) { + 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.v1.CustomJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Context(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -5776,28 +6704,453 @@ case 2: message.displayName = reader.string(); break; - case 4: - message.jobSpec = $root.google.cloud.aiplatform.v1.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()); + message.etag = reader.string(); 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 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Context message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Context + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Context} Context + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Context.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Context message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Context + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Context.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.parentContexts != null && message.hasOwnProperty("parentContexts")) { + if (!Array.isArray(message.parentContexts)) + return "parentContexts: array expected"; + for (var i = 0; i < message.parentContexts.length; ++i) + if (!$util.isString(message.parentContexts[i])) + return "parentContexts: string[] expected"; + } + return null; + }; + + /** + * Creates a Context message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Context + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Context} Context + */ + Context.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Context) + return object; + var message = new $root.google.cloud.aiplatform.v1.Context(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.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.v1.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.v1.Context.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.parentContexts) { + if (!Array.isArray(object.parentContexts)) + throw TypeError(".google.cloud.aiplatform.v1.Context.parentContexts: array expected"); + message.parentContexts = []; + for (var i = 0; i < object.parentContexts.length; ++i) + message.parentContexts[i] = String(object.parentContexts[i]); + } + return message; + }; + + /** + * Creates a plain object from a Context message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Context + * @static + * @param {google.cloud.aiplatform.v1.Context} message Context + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Context.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.parentContexts = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.etag = ""; + object.createTime = null; + object.updateTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.parentContexts && message.parentContexts.length) { + object.parentContexts = []; + for (var j = 0; j < message.parentContexts.length; ++j) + object.parentContexts[j] = message.parentContexts[j]; + } + return object; + }; + + /** + * Converts this Context to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Context + * @instance + * @returns {Object.} JSON object + */ + Context.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Context; + })(); + + v1.CustomJob = (function() { + + /** + * Properties of a CustomJob. + * @memberof google.cloud.aiplatform.v1 + * @interface ICustomJob + * @property {string|null} [name] CustomJob name + * @property {string|null} [displayName] CustomJob displayName + * @property {google.cloud.aiplatform.v1.ICustomJobSpec|null} [jobSpec] CustomJob jobSpec + * @property {google.cloud.aiplatform.v1.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.v1.IEncryptionSpec|null} [encryptionSpec] CustomJob encryptionSpec + */ + + /** + * Constructs a new CustomJob. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CustomJob. + * @implements ICustomJob + * @constructor + * @param {google.cloud.aiplatform.v1.ICustomJob=} [properties] Properties to set + */ + function CustomJob(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]]; + } + + /** + * CustomJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.name = ""; + + /** + * CustomJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.displayName = ""; + + /** + * CustomJob jobSpec. + * @member {google.cloud.aiplatform.v1.ICustomJobSpec|null|undefined} jobSpec + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.jobSpec = null; + + /** + * CustomJob state. + * @member {google.cloud.aiplatform.v1.JobState} state + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.state = 0; + + /** + * CustomJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.createTime = null; + + /** + * CustomJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.startTime = null; + + /** + * CustomJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.endTime = null; + + /** + * CustomJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.updateTime = null; + + /** + * CustomJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.error = null; + + /** + * CustomJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.labels = $util.emptyObject; + + /** + * CustomJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.encryptionSpec = null; + + /** + * Creates a new CustomJob instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CustomJob + * @static + * @param {google.cloud.aiplatform.v1.ICustomJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CustomJob} CustomJob instance + */ + CustomJob.create = function create(properties) { + return new CustomJob(properties); + }; + + /** + * Encodes the specified CustomJob message. Does not implicitly {@link google.cloud.aiplatform.v1.CustomJob.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CustomJob + * @static + * @param {google.cloud.aiplatform.v1.ICustomJob} message CustomJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomJob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.jobSpec != null && Object.hasOwnProperty.call(message, "jobSpec")) + $root.google.cloud.aiplatform.v1.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.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CustomJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CustomJob.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CustomJob + * @static + * @param {google.cloud.aiplatform.v1.ICustomJob} message CustomJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomJob.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomJob message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.CustomJob} CustomJob + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CustomJob(), 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.jobSpec = $root.google.cloud.aiplatform.v1.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; @@ -5881,6 +7234,7 @@ case 6: case 7: case 8: + case 9: break; } if (message.createTime != null && message.hasOwnProperty("createTime")) { @@ -5982,6 +7336,10 @@ 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") @@ -8617,6 +9975,7 @@ case 6: case 7: case 8: + case 9: break; } if (message.labelingProgress != null && message.hasOwnProperty("labelingProgress")) @@ -8748,6 +10107,10 @@ 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; @@ -23912,6 +25275,434 @@ return UndeployModelOperationMetadata; })(); + v1.Execution = (function() { + + /** + * Properties of an Execution. + * @memberof google.cloud.aiplatform.v1 + * @interface IExecution + * @property {string|null} [name] Execution name + * @property {string|null} [displayName] Execution displayName + * @property {google.cloud.aiplatform.v1.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 + */ + + /** + * Constructs a new Execution. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an Execution. + * @implements IExecution + * @constructor + * @param {google.cloud.aiplatform.v1.IExecution=} [properties] Properties to set + */ + function Execution(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]]; + } + + /** + * Execution name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.name = ""; + + /** + * Execution displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.displayName = ""; + + /** + * Execution state. + * @member {google.cloud.aiplatform.v1.Execution.State} state + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.state = 0; + + /** + * Execution etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.etag = ""; + + /** + * Execution labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.labels = $util.emptyObject; + + /** + * Execution createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.createTime = null; + + /** + * Execution updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.updateTime = null; + + /** + * Creates a new Execution instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {google.cloud.aiplatform.v1.IExecution=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Execution} Execution instance + */ + Execution.create = function create(properties) { + return new Execution(properties); + }; + + /** + * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1.Execution.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {google.cloud.aiplatform.v1.IExecution} message Execution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Execution.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(); + return writer; + }; + + /** + * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Execution.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {google.cloud.aiplatform.v1.IExecution} message Execution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Execution.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Execution message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.Execution} Execution + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Execution(), 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 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Execution message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Execution} Execution + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Execution message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Execution + * @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) { + 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; + } + return null; + }; + + /** + * Creates an Execution message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Execution} Execution + */ + Execution.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Execution) + return object; + var message = new $root.google.cloud.aiplatform.v1.Execution(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "NEW": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "COMPLETE": + case 3: + message.state = 3; + break; + case "FAILED": + case 4: + message.state = 4; + break; + case "CACHED": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.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.v1.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.v1.Execution.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + return message; + }; + + /** + * Creates a plain object from an Execution message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {google.cloud.aiplatform.v1.Execution} message Execution + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Execution.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; + } + 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.v1.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); + return object; + }; + + /** + * Converts this Execution to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + * @returns {Object.} JSON object + */ + Execution.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * State enum. + * @name google.cloud.aiplatform.v1.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; + })(); + v1.HyperparameterTuningJob = (function() { /** @@ -24324,6 +26115,7 @@ case 6: case 7: case 8: + case 9: break; } if (message.createTime != null && message.hasOwnProperty("createTime")) { @@ -24446,6 +26238,10 @@ 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") @@ -24582,12 +26378,16 @@ * Properties of a Trial. * @memberof google.cloud.aiplatform.v1 * @interface ITrial + * @property {string|null} [name] Trial name * @property {string|null} [id] Trial id * @property {google.cloud.aiplatform.v1.Trial.State|null} [state] Trial state * @property {Array.|null} [parameters] Trial parameters * @property {google.cloud.aiplatform.v1.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 */ @@ -24601,12 +26401,21 @@ */ function Trial(properties) { this.parameters = []; + this.measurements = []; if (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 name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.name = ""; + /** * Trial id. * @member {string} id @@ -24639,6 +26448,14 @@ */ Trial.prototype.finalMeasurement = null; + /** + * Trial measurements. + * @member {Array.} measurements + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.measurements = $util.emptyArray; + /** * Trial startTime. * @member {google.protobuf.ITimestamp|null|undefined} startTime @@ -24655,6 +26472,22 @@ */ Trial.prototype.endTime = null; + /** + * Trial clientId. + * @member {string} clientId + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.clientId = ""; + + /** + * Trial infeasibleReason. + * @member {string} infeasibleReason + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.infeasibleReason = ""; + /** * Trial customJob. * @member {string} customJob @@ -24687,6 +26520,8 @@ Trial.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.id); if (message.state != null && Object.hasOwnProperty.call(message, "state")) @@ -24696,10 +26531,17 @@ $root.google.cloud.aiplatform.v1.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.v1.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.v1.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); return writer; @@ -24736,6 +26578,9 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; case 2: message.id = reader.string(); break; @@ -24750,12 +26595,23 @@ case 5: message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.decode(reader, reader.uint32()); break; + case 6: + if (!(message.measurements && message.measurements.length)) + message.measurements = []; + message.measurements.push($root.google.cloud.aiplatform.v1.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; @@ -24794,6 +26650,9 @@ Trial.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isString(message.id)) return "id: string expected"; @@ -24823,6 +26682,15 @@ 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.v1.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) @@ -24833,6 +26701,12 @@ 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"; @@ -24851,6 +26725,8 @@ if (object instanceof $root.google.cloud.aiplatform.v1.Trial) return object; var message = new $root.google.cloud.aiplatform.v1.Trial(); + if (object.name != null) + message.name = String(object.name); if (object.id != null) message.id = String(object.id); switch (object.state) { @@ -24894,6 +26770,16 @@ throw TypeError(".google.cloud.aiplatform.v1.Trial.finalMeasurement: object expected"); message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.fromObject(object.finalMeasurement); } + if (object.measurements) { + if (!Array.isArray(object.measurements)) + throw TypeError(".google.cloud.aiplatform.v1.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.v1.Trial.measurements: object expected"); + message.measurements[i] = $root.google.cloud.aiplatform.v1.Measurement.fromObject(object.measurements[i]); + } + } if (object.startTime != null) { if (typeof object.startTime !== "object") throw TypeError(".google.cloud.aiplatform.v1.Trial.startTime: object expected"); @@ -24904,6 +26790,10 @@ throw TypeError(".google.cloud.aiplatform.v1.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); return message; @@ -24922,16 +26812,23 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.parameters = []; + object.measurements = []; + } 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")) @@ -24943,10 +26840,19 @@ } if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) object.finalMeasurement = $root.google.cloud.aiplatform.v1.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.v1.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; return object; @@ -26249,6 +28155,7 @@ * @interface IDoubleValueSpec * @property {number|null} [minValue] DoubleValueSpec minValue * @property {number|null} [maxValue] DoubleValueSpec maxValue + * @property {number|null} [defaultValue] DoubleValueSpec defaultValue */ /** @@ -26282,6 +28189,28 @@ */ DoubleValueSpec.prototype.maxValue = 0; + /** + * DoubleValueSpec defaultValue. + * @member {number|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1.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.v1.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 @@ -26310,6 +28239,8 @@ 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; }; @@ -26350,6 +28281,9 @@ case 2: message.maxValue = reader.double(); break; + case 4: + message.defaultValue = reader.double(); + break; default: reader.skipType(tag & 7); break; @@ -26385,12 +28319,18 @@ 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; }; @@ -26410,6 +28350,8 @@ 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; }; @@ -26434,6 +28376,11 @@ 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; }; @@ -26459,6 +28406,7 @@ * @interface IIntegerValueSpec * @property {number|Long|null} [minValue] IntegerValueSpec minValue * @property {number|Long|null} [maxValue] IntegerValueSpec maxValue + * @property {number|Long|null} [defaultValue] IntegerValueSpec defaultValue */ /** @@ -26492,6 +28440,28 @@ */ IntegerValueSpec.prototype.maxValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * IntegerValueSpec defaultValue. + * @member {number|Long|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1.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.v1.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 @@ -26520,6 +28490,8 @@ 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; }; @@ -26560,6 +28532,9 @@ case 2: message.maxValue = reader.int64(); break; + case 4: + message.defaultValue = reader.int64(); + break; default: reader.skipType(tag & 7); break; @@ -26595,12 +28570,18 @@ 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; }; @@ -26634,6 +28615,15 @@ 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; }; @@ -26672,6 +28662,14 @@ 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; }; @@ -26696,6 +28694,7 @@ * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec * @interface ICategoricalValueSpec * @property {Array.|null} [values] CategoricalValueSpec values + * @property {string|null} [defaultValue] CategoricalValueSpec defaultValue */ /** @@ -26722,6 +28721,28 @@ */ CategoricalValueSpec.prototype.values = $util.emptyArray; + /** + * CategoricalValueSpec defaultValue. + * @member {string|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1.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.v1.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 @@ -26749,6 +28770,8 @@ 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; }; @@ -26788,6 +28811,9 @@ message.values = []; message.values.push(reader.string()); break; + case 3: + message.defaultValue = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -26823,6 +28849,7 @@ 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"; @@ -26830,6 +28857,11 @@ 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; }; @@ -26852,6 +28884,8 @@ 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; }; @@ -26875,6 +28909,11 @@ 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; }; @@ -26899,6 +28938,7 @@ * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec * @interface IDiscreteValueSpec * @property {Array.|null} [values] DiscreteValueSpec values + * @property {number|null} [defaultValue] DiscreteValueSpec defaultValue */ /** @@ -26925,6 +28965,28 @@ */ DiscreteValueSpec.prototype.values = $util.emptyArray; + /** + * DiscreteValueSpec defaultValue. + * @member {number|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1.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.v1.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 @@ -26955,6 +29017,8 @@ 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; }; @@ -26999,6 +29063,9 @@ } else message.values.push(reader.double()); break; + case 3: + message.defaultValue = reader.double(); + break; default: reader.skipType(tag & 7); break; @@ -27034,6 +29101,7 @@ 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"; @@ -27041,6 +29109,11 @@ 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; }; @@ -27063,6 +29136,8 @@ 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; }; @@ -27086,6 +29161,11 @@ 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; }; @@ -28123,6 +30203,7 @@ * Properties of a Measurement. * @memberof google.cloud.aiplatform.v1 * @interface IMeasurement + * @property {google.protobuf.IDuration|null} [elapsedDuration] Measurement elapsedDuration * @property {number|Long|null} [stepCount] Measurement stepCount * @property {Array.|null} [metrics] Measurement metrics */ @@ -28143,6 +30224,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * Measurement elapsedDuration. + * @member {google.protobuf.IDuration|null|undefined} elapsedDuration + * @memberof google.cloud.aiplatform.v1.Measurement + * @instance + */ + Measurement.prototype.elapsedDuration = null; + /** * Measurement stepCount. * @member {number|Long} stepCount @@ -28183,6 +30272,8 @@ Measurement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.elapsedDuration != null && Object.hasOwnProperty.call(message, "elapsedDuration")) + $root.google.protobuf.Duration.encode(message.elapsedDuration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.stepCount != null && Object.hasOwnProperty.call(message, "stepCount")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stepCount); if (message.metrics != null && message.metrics.length) @@ -28222,6 +30313,9 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.elapsedDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; case 2: message.stepCount = reader.int64(); break; @@ -28265,6 +30359,11 @@ Measurement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) { + var error = $root.google.protobuf.Duration.verify(message.elapsedDuration); + if (error) + return "elapsedDuration." + error; + } if (message.stepCount != null && message.hasOwnProperty("stepCount")) if (!$util.isInteger(message.stepCount) && !(message.stepCount && $util.isInteger(message.stepCount.low) && $util.isInteger(message.stepCount.high))) return "stepCount: integer|Long expected"; @@ -28292,6 +30391,11 @@ if (object instanceof $root.google.cloud.aiplatform.v1.Measurement) return object; var message = new $root.google.cloud.aiplatform.v1.Measurement(); + if (object.elapsedDuration != null) { + if (typeof object.elapsedDuration !== "object") + throw TypeError(".google.cloud.aiplatform.v1.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; @@ -28329,12 +30433,16 @@ var object = {}; if (options.arrays || options.defaults) object.metrics = []; - if (options.defaults) + 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; @@ -44463,225 +46571,4326 @@ return ListModelEvaluationSlicesResponse; })(); - v1.PipelineService = (function() { + v1.PipelineJob = (function() { /** - * Constructs a new PipelineService service. + * Properties of a PipelineJob. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineService - * @extends $protobuf.rpc.Service + * @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.v1.PipelineState|null} [state] PipelineJob state + * @property {google.cloud.aiplatform.v1.IPipelineJobDetail|null} [jobDetail] PipelineJob jobDetail + * @property {google.rpc.IStatus|null} [error] PipelineJob error + * @property {Object.|null} [labels] PipelineJob labels + * @property {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null} [runtimeConfig] PipelineJob runtimeConfig + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] PipelineJob encryptionSpec + * @property {string|null} [serviceAccount] PipelineJob serviceAccount + * @property {string|null} [network] PipelineJob network + */ + + /** + * Constructs a new PipelineJob. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PipelineJob. + * @implements IPipelineJob * @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.v1.IPipelineJob=} [properties] Properties to set */ - function PipelineService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + 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]]; } - (PipelineService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PipelineService; + /** + * PipelineJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.name = ""; /** - * Creates new PipelineService service using the specified rpc implementation. + * PipelineJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.displayName = ""; + + /** + * PipelineJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.createTime = null; + + /** + * PipelineJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.startTime = null; + + /** + * PipelineJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.endTime = null; + + /** + * PipelineJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.updateTime = null; + + /** + * PipelineJob pipelineSpec. + * @member {google.protobuf.IStruct|null|undefined} pipelineSpec + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.pipelineSpec = null; + + /** + * PipelineJob state. + * @member {google.cloud.aiplatform.v1.PipelineState} state + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.state = 0; + + /** + * PipelineJob jobDetail. + * @member {google.cloud.aiplatform.v1.IPipelineJobDetail|null|undefined} jobDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.jobDetail = null; + + /** + * PipelineJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.error = null; + + /** + * PipelineJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.labels = $util.emptyObject; + + /** + * PipelineJob runtimeConfig. + * @member {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null|undefined} runtimeConfig + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.runtimeConfig = null; + + /** + * PipelineJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.encryptionSpec = null; + + /** + * PipelineJob serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.serviceAccount = ""; + + /** + * PipelineJob network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.network = ""; + + /** + * Creates a new PipelineJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineService + * @memberof google.cloud.aiplatform.v1.PipelineJob * @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. + * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob instance */ - PipelineService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + PipelineJob.create = function create(properties) { + return new PipelineJob(properties); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#createTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CreateTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline + * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @static + * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} 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.v1.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.v1.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.v1.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; + }; /** - * Calls CreateTrainingPipeline. - * @function createTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline - * @returns {undefined} - * @variation 1 + * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @static + * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(PipelineService.prototype.createTrainingPipeline = function createTrainingPipeline(request, callback) { - return this.rpcCall(createTrainingPipeline, $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); - }, "name", { value: "CreateTrainingPipeline" }); + PipelineJob.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CreateTrainingPipeline. - * @function createTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService + * Decodes a PipelineJob message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.PipelineJob.RuntimeConfig.decode(reader, reader.uint32()); + break; + case 16: + message.encryptionSpec = $root.google.cloud.aiplatform.v1.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; + } + } + return message; + }; + + /** + * Decodes a PipelineJob message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PipelineJob message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @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) { + 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.v1.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.v1.PipelineJob.RuntimeConfig.verify(message.runtimeConfig); + if (error) + return "runtimeConfig." + error; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.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 PipelineJob message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob + */ + PipelineJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob) + return object; + var message = new $root.google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.PipelineJob.jobDetail: object expected"); + message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.fromObject(object.jobDetail); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.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.v1.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.v1.PipelineJob.runtimeConfig: object expected"); + message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.fromObject(object.runtimeConfig); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.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 PipelineJob message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob} message PipelineJob + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PipelineJob.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.v1.PipelineState[message.state] : message.state; + if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) + object.jobDetail = $root.google.cloud.aiplatform.v1.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.v1.PipelineJob.RuntimeConfig.toObject(message.runtimeConfig, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.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 PipelineJob to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + PipelineJob.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + PipelineJob.RuntimeConfig = (function() { + + /** + * Properties of a RuntimeConfig. + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @interface IRuntimeConfig + * @property {Object.|null} [parameters] RuntimeConfig parameters + * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory + */ + + /** + * Constructs a new RuntimeConfig. + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @classdesc Represents a RuntimeConfig. + * @implements IRuntimeConfig + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set + */ + function RuntimeConfig(properties) { + this.parameters = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RuntimeConfig parameters. + * @member {Object.} parameters + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.parameters = $util.emptyObject; + + /** + * RuntimeConfig gcsOutputDirectory. + * @member {string} gcsOutputDirectory + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.gcsOutputDirectory = ""; + + /** + * Creates a new RuntimeConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.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.v1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1.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.v1.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); + return writer; + }; + + /** + * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameters[key] = value; + break; + case 2: + message.gcsOutputDirectory = reader.string(); + 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.v1.PipelineJob.RuntimeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.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.v1.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.v1.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"; + return null; + }; + + /** + * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig + */ + RuntimeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(); + if (object.parameters) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1.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.v1.PipelineJob.RuntimeConfig.parameters: object expected"); + message.parameters[keys[i]] = $root.google.cloud.aiplatform.v1.Value.fromObject(object.parameters[keys[i]]); + } + } + if (object.gcsOutputDirectory != null) + message.gcsOutputDirectory = String(object.gcsOutputDirectory); + return message; + }; + + /** + * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1.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 = {}; + 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.v1.Value.toObject(message.parameters[keys2[j]], options); + } + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + object.gcsOutputDirectory = message.gcsOutputDirectory; + return object; + }; + + /** + * Converts this RuntimeConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + * @returns {Object.} JSON object + */ + RuntimeConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return RuntimeConfig; + })(); + + return PipelineJob; + })(); + + v1.PipelineJobDetail = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#getTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef GetTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline + * Properties of a PipelineJobDetail. + * @memberof google.cloud.aiplatform.v1 + * @interface IPipelineJobDetail + * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineContext] PipelineJobDetail pipelineContext + * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineRunContext] PipelineJobDetail pipelineRunContext + * @property {Array.|null} [taskDetails] PipelineJobDetail taskDetails + */ + + /** + * Constructs a new PipelineJobDetail. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PipelineJobDetail. + * @implements IPipelineJobDetail + * @constructor + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set + */ + function PipelineJobDetail(properties) { + this.taskDetails = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PipelineJobDetail pipelineContext. + * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineContext + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @instance + */ + PipelineJobDetail.prototype.pipelineContext = null; + + /** + * PipelineJobDetail pipelineRunContext. + * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineRunContext + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @instance + */ + PipelineJobDetail.prototype.pipelineRunContext = null; + + /** + * PipelineJobDetail taskDetails. + * @member {Array.} taskDetails + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @instance + */ + PipelineJobDetail.prototype.taskDetails = $util.emptyArray; + + /** + * Creates a new PipelineJobDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail instance + */ + PipelineJobDetail.create = function create(properties) { + return new PipelineJobDetail(properties); + }; + + /** + * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineJobDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pipelineContext != null && Object.hasOwnProperty.call(message, "pipelineContext")) + $root.google.cloud.aiplatform.v1.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.v1.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.v1.PipelineTaskDetail.encode(message.taskDetails[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineJobDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PipelineJobDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.PipelineJobDetail} PipelineJobDetail + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + break; + case 2: + message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + break; + case 3: + if (!(message.taskDetails && message.taskDetails.length)) + message.taskDetails = []; + message.taskDetails.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PipelineJobDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineContext); + if (error) + return "pipelineContext." + error; + } + if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) { + var error = $root.google.cloud.aiplatform.v1.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.v1.PipelineTaskDetail.verify(message.taskDetails[i]); + if (error) + return "taskDetails." + error; + } + } + return null; + }; + + /** + * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail + */ + PipelineJobDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJobDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); + if (object.pipelineContext != null) { + if (typeof object.pipelineContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineContext: object expected"); + message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineContext); + } + if (object.pipelineRunContext != null) { + if (typeof object.pipelineRunContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineRunContext: object expected"); + message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineRunContext); + } + if (object.taskDetails) { + if (!Array.isArray(object.taskDetails)) + throw TypeError(".google.cloud.aiplatform.v1.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.v1.PipelineJobDetail.taskDetails: object expected"); + message.taskDetails[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.fromObject(object.taskDetails[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineJobDetail} message PipelineJobDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PipelineJobDetail.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.v1.Context.toObject(message.pipelineContext, options); + if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) + object.pipelineRunContext = $root.google.cloud.aiplatform.v1.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.v1.PipelineTaskDetail.toObject(message.taskDetails[j], options); + } + return object; + }; + + /** + * Converts this PipelineJobDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @instance + * @returns {Object.} JSON object + */ + PipelineJobDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PipelineJobDetail; + })(); + + v1.PipelineTaskDetail = (function() { + + /** + * Properties of a PipelineTaskDetail. + * @memberof google.cloud.aiplatform.v1 + * @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.v1.IPipelineTaskExecutorDetail|null} [executorDetail] PipelineTaskDetail executorDetail + * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskDetail state + * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] PipelineTaskDetail execution + * @property {google.rpc.IStatus|null} [error] PipelineTaskDetail error + * @property {Object.|null} [inputs] PipelineTaskDetail inputs + * @property {Object.|null} [outputs] PipelineTaskDetail outputs + */ + + /** + * Constructs a new PipelineTaskDetail. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PipelineTaskDetail. + * @implements IPipelineTaskDetail + * @constructor + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set + */ + function PipelineTaskDetail(properties) { + 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]]; + } + + /** + * PipelineTaskDetail taskId. + * @member {number|Long} taskId + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.taskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PipelineTaskDetail parentTaskId. + * @member {number|Long} parentTaskId + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.parentTaskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PipelineTaskDetail taskName. + * @member {string} taskName + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.taskName = ""; + + /** + * PipelineTaskDetail createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.createTime = null; + + /** + * PipelineTaskDetail startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.startTime = null; + + /** + * PipelineTaskDetail endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.endTime = null; + + /** + * PipelineTaskDetail executorDetail. + * @member {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null|undefined} executorDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.executorDetail = null; + + /** + * PipelineTaskDetail state. + * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.state = 0; + + /** + * PipelineTaskDetail execution. + * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.execution = null; + + /** + * PipelineTaskDetail error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.error = null; + + /** + * PipelineTaskDetail inputs. + * @member {Object.} inputs + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.inputs = $util.emptyObject; + + /** + * PipelineTaskDetail outputs. + * @member {Object.} outputs + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.outputs = $util.emptyObject; + + /** + * Creates a new PipelineTaskDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail instance + */ + PipelineTaskDetail.create = function create(properties) { + return new PipelineTaskDetail(properties); + }; + + /** + * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.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); + return writer; + }; + + /** + * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PipelineTaskDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.PipelineTaskDetail} PipelineTaskDetail + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskId = reader.int64(); + break; + case 12: + message.parentTaskId = reader.int64(); + break; + case 2: + 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.v1.PipelineTaskExecutorDetail.decode(reader, reader.uint32()); + break; + case 7: + message.state = reader.int32(); + break; + case 8: + message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); + break; + case 9: + message.error = $root.google.rpc.Status.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.v1.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.v1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.outputs[key] = value; + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PipelineTaskDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @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) { + 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.v1.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.v1.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.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.v1.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.v1.PipelineTaskDetail.ArtifactList.verify(message.outputs[key[i]]); + if (error) + return "outputs." + error; + } + } + return null; + }; + + /** + * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + */ + PipelineTaskDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.PipelineTaskDetail.executorDetail: object expected"); + message.executorDetail = $root.google.cloud.aiplatform.v1.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.v1.PipelineTaskDetail.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.inputs) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.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.v1.PipelineTaskDetail.inputs: object expected"); + message.inputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.inputs[keys[i]]); + } + } + if (object.outputs) { + if (typeof object.outputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.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.v1.PipelineTaskDetail.outputs: object expected"); + message.outputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.outputs[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail} message PipelineTaskDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PipelineTaskDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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.v1.PipelineTaskExecutorDetail.toObject(message.executorDetail, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1.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.v1.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.v1.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; + return object; + }; + + /** + * Converts this PipelineTaskDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + * @returns {Object.} JSON object + */ + PipelineTaskDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + PipelineTaskDetail.ArtifactList = (function() { + + /** + * Properties of an ArtifactList. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @interface IArtifactList + * @property {Array.|null} [artifacts] ArtifactList artifacts + */ + + /** + * Constructs a new ArtifactList. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @classdesc Represents an ArtifactList. + * @implements IArtifactList + * @constructor + * @param {google.cloud.aiplatform.v1.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.v1.PipelineTaskDetail.ArtifactList + * @instance + */ + ArtifactList.prototype.artifacts = $util.emptyArray; + + /** + * Creates a new ArtifactList instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.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.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.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.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList + */ + ArtifactList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1.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.v1.PipelineTaskDetail.ArtifactList.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1.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.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.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.v1.Artifact.toObject(message.artifacts[j], options); + } + return object; + }; + + /** + * Converts this ArtifactList to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.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.v1.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; + })(); + + v1.PipelineTaskExecutorDetail = (function() { + + /** + * Properties of a PipelineTaskExecutorDetail. + * @memberof google.cloud.aiplatform.v1 + * @interface IPipelineTaskExecutorDetail + * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null} [containerDetail] PipelineTaskExecutorDetail containerDetail + * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null} [customJobDetail] PipelineTaskExecutorDetail customJobDetail + */ + + /** + * Constructs a new PipelineTaskExecutorDetail. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PipelineTaskExecutorDetail. + * @implements IPipelineTaskExecutorDetail + * @constructor + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set + */ + function PipelineTaskExecutorDetail(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]]; + } + + /** + * PipelineTaskExecutorDetail containerDetail. + * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null|undefined} containerDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @instance + */ + PipelineTaskExecutorDetail.prototype.containerDetail = null; + + /** + * PipelineTaskExecutorDetail customJobDetail. + * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null|undefined} customJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @instance + */ + PipelineTaskExecutorDetail.prototype.customJobDetail = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PipelineTaskExecutorDetail details. + * @member {"containerDetail"|"customJobDetail"|undefined} details + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @instance + */ + Object.defineProperty(PipelineTaskExecutorDetail.prototype, "details", { + get: $util.oneOfGetter($oneOfFields = ["containerDetail", "customJobDetail"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PipelineTaskExecutorDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail instance + */ + PipelineTaskExecutorDetail.create = function create(properties) { + return new PipelineTaskExecutorDetail(properties); + }; + + /** + * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskExecutorDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.containerDetail != null && Object.hasOwnProperty.call(message, "containerDetail")) + $root.google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.CustomJobDetail.encode(message.customJobDetail, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskExecutorDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.decode(reader, reader.uint32()); + break; + case 2: + message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PipelineTaskExecutorDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @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) { + 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.v1.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.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify(message.customJobDetail); + if (error) + return "customJobDetail." + error; + } + } + return null; + }; + + /** + * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + */ + PipelineTaskExecutorDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); + if (object.containerDetail != null) { + if (typeof object.containerDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.containerDetail: object expected"); + message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.fromObject(object.containerDetail); + } + if (object.customJobDetail != null) { + if (typeof object.customJobDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.customJobDetail: object expected"); + message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.fromObject(object.customJobDetail); + } + return message; + }; + + /** + * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} message PipelineTaskExecutorDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PipelineTaskExecutorDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { + object.containerDetail = $root.google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.CustomJobDetail.toObject(message.customJobDetail, options); + if (options.oneofs) + object.details = "customJobDetail"; + } + return object; + }; + + /** + * Converts this PipelineTaskExecutorDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @instance + * @returns {Object.} JSON object + */ + PipelineTaskExecutorDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + PipelineTaskExecutorDetail.ContainerDetail = (function() { + + /** + * Properties of a ContainerDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @interface IContainerDetail + * @property {string|null} [mainJob] ContainerDetail mainJob + * @property {string|null} [preCachingCheckJob] ContainerDetail preCachingCheckJob + */ + + /** + * Constructs a new ContainerDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @classdesc Represents a ContainerDetail. + * @implements IContainerDetail + * @constructor + * @param {google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.mainJob = ""; + + /** + * ContainerDetail preCachingCheckJob. + * @member {string} preCachingCheckJob + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.preCachingCheckJob = ""; + + /** + * Creates a new ContainerDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.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.v1.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.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + */ + ContainerDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.PipelineTaskExecutorDetail + * @interface ICustomJobDetail + * @property {string|null} [job] CustomJobDetail job + */ + + /** + * Constructs a new CustomJobDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @classdesc Represents a CustomJobDetail. + * @implements ICustomJobDetail + * @constructor + * @param {google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + */ + CustomJobDetail.prototype.job = ""; + + /** + * Creates a new CustomJobDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.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.v1.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.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + */ + CustomJobDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.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.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + * @returns {Object.} JSON object + */ + CustomJobDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CustomJobDetail; + })(); + + return PipelineTaskExecutorDetail; + })(); + + v1.PipelineService = (function() { + + /** + * Constructs a new PipelineService service. + * @memberof google.cloud.aiplatform.v1 + * @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.v1.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.v1.PipelineService#createTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CreateTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline + */ + + /** + * Calls CreateTrainingPipeline. + * @function createTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.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.v1.CreateTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); + }, "name", { value: "CreateTrainingPipeline" }); + + /** + * Calls CreateTrainingPipeline. + * @function createTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#getTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef GetTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline + */ + + /** + * Calls GetTrainingPipeline. + * @function getTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.getTrainingPipeline = function getTrainingPipeline(request, callback) { + return this.rpcCall(getTrainingPipeline, $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); + }, "name", { value: "GetTrainingPipeline" }); + + /** + * Calls GetTrainingPipeline. + * @function getTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#listTrainingPipelines}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef ListTrainingPipelinesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} [response] ListTrainingPipelinesResponse + */ + + /** + * Calls ListTrainingPipelines. + * @function listTrainingPipelines + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback} callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.listTrainingPipelines = function listTrainingPipelines(request, callback) { + return this.rpcCall(listTrainingPipelines, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, request, callback); + }, "name", { value: "ListTrainingPipelines" }); + + /** + * Calls ListTrainingPipelines. + * @function listTrainingPipelines + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#deleteTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef DeleteTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteTrainingPipeline. + * @function deleteTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.deleteTrainingPipeline = function deleteTrainingPipeline(request, callback) { + return this.rpcCall(deleteTrainingPipeline, $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteTrainingPipeline" }); + + /** + * Calls DeleteTrainingPipeline. + * @function deleteTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#cancelTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CancelTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelTrainingPipeline. + * @function cancelTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.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.v1.CancelTrainingPipelineRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelTrainingPipeline" }); + + /** + * Calls CancelTrainingPipeline. + * @function cancelTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#createPipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CreatePipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob + */ + + /** + * Calls CreatePipelineJob. + * @function createPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.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.v1.CreatePipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); + }, "name", { value: "CreatePipelineJob" }); + + /** + * Calls CreatePipelineJob. + * @function createPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#getPipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef GetPipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob + */ + + /** + * Calls GetPipelineJob. + * @function getPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.GetPipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.getPipelineJob = function getPipelineJob(request, callback) { + return this.rpcCall(getPipelineJob, $root.google.cloud.aiplatform.v1.GetPipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); + }, "name", { value: "GetPipelineJob" }); + + /** + * Calls GetPipelineJob. + * @function getPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#listPipelineJobs}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef ListPipelineJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} [response] ListPipelineJobsResponse + */ + + /** + * Calls ListPipelineJobs. + * @function listPipelineJobs + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.ListPipelineJobsCallback} callback Node-style callback called with the error, if any, and ListPipelineJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.listPipelineJobs = function listPipelineJobs(request, callback) { + return this.rpcCall(listPipelineJobs, $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest, $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse, request, callback); + }, "name", { value: "ListPipelineJobs" }); + + /** + * Calls ListPipelineJobs. + * @function listPipelineJobs + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#deletePipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef DeletePipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeletePipelineJob. + * @function deletePipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.DeletePipelineJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.deletePipelineJob = function deletePipelineJob(request, callback) { + return this.rpcCall(deletePipelineJob, $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeletePipelineJob" }); + + /** + * Calls DeletePipelineJob. + * @function deletePipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#cancelPipelineJob}. + * @memberof google.cloud.aiplatform.v1.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.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CancelPipelineJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.cancelPipelineJob = function cancelPipelineJob(request, callback) { + return this.rpcCall(cancelPipelineJob, $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelPipelineJob" }); + + /** + * Calls CancelPipelineJob. + * @function cancelPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return PipelineService; + })(); + + v1.CreateTrainingPipelineRequest = (function() { + + /** + * Properties of a CreateTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateTrainingPipelineRequest + * @property {string|null} [parent] CreateTrainingPipelineRequest parent + * @property {google.cloud.aiplatform.v1.ITrainingPipeline|null} [trainingPipeline] CreateTrainingPipelineRequest trainingPipeline + */ + + /** + * Constructs a new CreateTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateTrainingPipelineRequest. + * @implements ICreateTrainingPipelineRequest + * @constructor + * @param {google.cloud.aiplatform.v1.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.v1.CreateTrainingPipelineRequest + * @instance + */ + CreateTrainingPipelineRequest.prototype.parent = ""; + + /** + * CreateTrainingPipelineRequest trainingPipeline. + * @member {google.cloud.aiplatform.v1.ITrainingPipeline|null|undefined} trainingPipeline + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @instance + */ + CreateTrainingPipelineRequest.prototype.trainingPipeline = null; + + /** + * Creates a new CreateTrainingPipelineRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest instance + */ + CreateTrainingPipelineRequest.create = function create(properties) { + return new CreateTrainingPipelineRequest(properties); + }; + + /** + * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTrainingPipelineRequest.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.v1.TrainingPipeline.encode(message.trainingPipeline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.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.v1.CreateTrainingPipelineRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateTrainingPipelineRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @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) { + 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.v1.TrainingPipeline.verify(message.trainingPipeline); + if (error) + return "trainingPipeline." + error; + } + return null; + }; + + /** + * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + */ + CreateTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.trainingPipeline != null) { + if (typeof object.trainingPipeline !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.trainingPipeline: object expected"); + message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipeline); + } + return message; + }; + + /** + * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} message CreateTrainingPipelineRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateTrainingPipelineRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.trainingPipeline = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) + object.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipeline, options); + return object; + }; + + /** + * Converts this CreateTrainingPipelineRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @instance + * @returns {Object.} JSON object + */ + CreateTrainingPipelineRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateTrainingPipelineRequest; + })(); + + v1.GetTrainingPipelineRequest = (function() { + + /** + * Properties of a GetTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetTrainingPipelineRequest + * @property {string|null} [name] GetTrainingPipelineRequest name + */ + + /** + * Constructs a new GetTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetTrainingPipelineRequest. + * @implements IGetTrainingPipelineRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set + */ + function GetTrainingPipelineRequest(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]]; + } + + /** + * GetTrainingPipelineRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @instance + */ + GetTrainingPipelineRequest.prototype.name = ""; + + /** + * Creates a new GetTrainingPipelineRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest instance + */ + GetTrainingPipelineRequest.create = function create(properties) { + return new GetTrainingPipelineRequest(properties); + }; + + /** + * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTrainingPipelineRequest.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 GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); + 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 GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetTrainingPipelineRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @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) { + 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 GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + */ + GetTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); + 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. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} message GetTrainingPipelineRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetTrainingPipelineRequest.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 GetTrainingPipelineRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @instance + * @returns {Object.} JSON object + */ + GetTrainingPipelineRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetTrainingPipelineRequest; + })(); + + v1.ListTrainingPipelinesRequest = (function() { + + /** + * Properties of a ListTrainingPipelinesRequest. + * @memberof google.cloud.aiplatform.v1 + * @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 ListTrainingPipelinesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListTrainingPipelinesRequest. + * @implements IListTrainingPipelinesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set + */ + function ListTrainingPipelinesRequest(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]]; + } + + /** + * ListTrainingPipelinesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @instance + */ + ListTrainingPipelinesRequest.prototype.parent = ""; + + /** + * ListTrainingPipelinesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @instance + */ + ListTrainingPipelinesRequest.prototype.filter = ""; + + /** + * ListTrainingPipelinesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @instance + */ + ListTrainingPipelinesRequest.prototype.pageSize = 0; + + /** + * ListTrainingPipelinesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @instance + */ + ListTrainingPipelinesRequest.prototype.pageToken = ""; + + /** + * ListTrainingPipelinesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @instance + */ + ListTrainingPipelinesRequest.prototype.readMask = null; + + /** + * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest instance + */ + ListTrainingPipelinesRequest.create = function create(properties) { + return new ListTrainingPipelinesRequest(properties); + }; + + /** + * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @static + * @param {google.cloud.aiplatform.v1.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 ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTrainingPipelinesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListTrainingPipelinesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @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) { + 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 ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + */ + ListTrainingPipelinesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; + + /** + * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @static + * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} message ListTrainingPipelinesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTrainingPipelinesRequest.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 ListTrainingPipelinesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @instance + * @returns {Object.} JSON object + */ + ListTrainingPipelinesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListTrainingPipelinesRequest; + })(); + + v1.ListTrainingPipelinesResponse = (function() { + + /** + * Properties of a ListTrainingPipelinesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListTrainingPipelinesResponse + * @property {Array.|null} [trainingPipelines] ListTrainingPipelinesResponse trainingPipelines + * @property {string|null} [nextPageToken] ListTrainingPipelinesResponse nextPageToken + */ + + /** + * Constructs a new ListTrainingPipelinesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListTrainingPipelinesResponse. + * @implements IListTrainingPipelinesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set + */ + function ListTrainingPipelinesResponse(properties) { + this.trainingPipelines = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListTrainingPipelinesResponse trainingPipelines. + * @member {Array.} trainingPipelines + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @instance + */ + ListTrainingPipelinesResponse.prototype.trainingPipelines = $util.emptyArray; + + /** + * ListTrainingPipelinesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @instance + */ + ListTrainingPipelinesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse instance + */ + ListTrainingPipelinesResponse.create = function create(properties) { + return new ListTrainingPipelinesResponse(properties); + }; + + /** + * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTrainingPipelinesResponse.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.v1.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 ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTrainingPipelinesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); + 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.v1.TrainingPipeline.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListTrainingPipelinesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @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) { + 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.v1.TrainingPipeline.verify(message.trainingPipelines[i]); + if (error) + return "trainingPipelines." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + */ + ListTrainingPipelinesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); + if (object.trainingPipelines) { + if (!Array.isArray(object.trainingPipelines)) + throw TypeError(".google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesResponse.trainingPipelines: object expected"); + message.trainingPipelines[i] = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipelines[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @static + * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} message ListTrainingPipelinesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTrainingPipelinesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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.v1.TrainingPipeline.toObject(message.trainingPipelines[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListTrainingPipelinesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @instance + * @returns {Object.} JSON object + */ + ListTrainingPipelinesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListTrainingPipelinesResponse; + })(); + + v1.DeleteTrainingPipelineRequest = (function() { + + /** + * Properties of a DeleteTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteTrainingPipelineRequest + * @property {string|null} [name] DeleteTrainingPipelineRequest name + */ + + /** + * Constructs a new DeleteTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteTrainingPipelineRequest. + * @implements IDeleteTrainingPipelineRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set + */ + 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]]; + } + + /** + * DeleteTrainingPipelineRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @instance + */ + DeleteTrainingPipelineRequest.prototype.name = ""; + + /** + * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest instance + */ + DeleteTrainingPipelineRequest.create = function create(properties) { + return new DeleteTrainingPipelineRequest(properties); + }; + + /** + * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + 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; + }; + + /** + * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.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(); + }; + + /** + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.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.v1.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; + }; + + /** + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteTrainingPipelineRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.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; + }; + + /** + * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + */ + DeleteTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); + 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. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + 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; + }; + + /** + * Converts this DeleteTrainingPipelineRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteTrainingPipelineRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteTrainingPipelineRequest; + })(); + + v1.CancelTrainingPipelineRequest = (function() { + + /** + * Properties of a CancelTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICancelTrainingPipelineRequest + * @property {string|null} [name] CancelTrainingPipelineRequest name */ /** - * Calls GetTrainingPipeline. - * @function getTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline - * @returns {undefined} - * @variation 1 + * Constructs a new CancelTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CancelTrainingPipelineRequest. + * @implements ICancelTrainingPipelineRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set */ - Object.defineProperty(PipelineService.prototype.getTrainingPipeline = function getTrainingPipeline(request, callback) { - return this.rpcCall(getTrainingPipeline, $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); - }, "name", { value: "GetTrainingPipeline" }); + 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 GetTrainingPipeline. - * @function getTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService + * CancelTrainingPipelineRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @instance - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CancelTrainingPipelineRequest.prototype.name = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService#listTrainingPipelines}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef ListTrainingPipelinesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} [response] ListTrainingPipelinesResponse + * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest instance */ + CancelTrainingPipelineRequest.create = function create(properties) { + return new CancelTrainingPipelineRequest(properties); + }; /** - * Calls ListTrainingPipelines. - * @function listTrainingPipelines - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback} callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.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.listTrainingPipelines = function listTrainingPipelines(request, callback) { - return this.rpcCall(listTrainingPipelines, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, request, callback); - }, "name", { value: "ListTrainingPipelines" }); + 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; + }; /** - * Calls ListTrainingPipelines. - * @function listTrainingPipelines - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.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.v1.PipelineService#deleteTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef DeleteTrainingPipelineCallback - * @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.v1.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.v1.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.v1.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 DeleteTrainingPipeline. - * @function deleteTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback} 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.v1.CancelTrainingPipelineRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.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.deleteTrainingPipeline = function deleteTrainingPipeline(request, callback) { - return this.rpcCall(deleteTrainingPipeline, $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteTrainingPipeline" }); + CancelTrainingPipelineRequest.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.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a CancelTrainingPipelineRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.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.v1.PipelineService#cancelTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CancelTrainingPipelineCallback - * @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.v1.CancelTrainingPipelineRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest */ + CancelTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Calls CancelTrainingPipeline. - * @function cancelTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback} 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.v1.CancelTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} message CancelTrainingPipelineRequest + * @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.v1.CancelTrainingPipelineRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelTrainingPipeline" }); + 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 CancelTrainingPipeline. - * @function cancelTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService + * Converts this CancelTrainingPipelineRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @instance - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest 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; })(); - v1.CreateTrainingPipelineRequest = (function() { + v1.CreatePipelineJobRequest = (function() { /** - * Properties of a CreateTrainingPipelineRequest. + * Properties of a CreatePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateTrainingPipelineRequest - * @property {string|null} [parent] CreateTrainingPipelineRequest parent - * @property {google.cloud.aiplatform.v1.ITrainingPipeline|null} [trainingPipeline] CreateTrainingPipelineRequest trainingPipeline + * @interface ICreatePipelineJobRequest + * @property {string|null} [parent] CreatePipelineJobRequest parent + * @property {google.cloud.aiplatform.v1.IPipelineJob|null} [pipelineJob] CreatePipelineJobRequest pipelineJob + * @property {string|null} [pipelineJobId] CreatePipelineJobRequest pipelineJobId */ /** - * Constructs a new CreateTrainingPipelineRequest. + * Constructs a new CreatePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateTrainingPipelineRequest. - * @implements ICreateTrainingPipelineRequest + * @classdesc Represents a CreatePipelineJobRequest. + * @implements ICreatePipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.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) @@ -44689,80 +50898,90 @@ } /** - * CreateTrainingPipelineRequest parent. + * CreatePipelineJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance */ - CreateTrainingPipelineRequest.prototype.parent = ""; + CreatePipelineJobRequest.prototype.parent = ""; /** - * CreateTrainingPipelineRequest trainingPipeline. - * @member {google.cloud.aiplatform.v1.ITrainingPipeline|null|undefined} trainingPipeline - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * CreatePipelineJobRequest pipelineJob. + * @member {google.cloud.aiplatform.v1.IPipelineJob|null|undefined} pipelineJob + * @memberof google.cloud.aiplatform.v1.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.v1.CreatePipelineJobRequest + * @instance + */ + CreatePipelineJobRequest.prototype.pipelineJobId = ""; + + /** + * Creates a new CreatePipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.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.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.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.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.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.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.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.v1.CreateTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -44770,7 +50989,10 @@ message.parent = reader.string(); break; case 2: - message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32()); + message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32()); + break; + case 3: + message.pipelineJobId = reader.string(); break; default: reader.skipType(tag & 7); @@ -44781,121 +51003,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.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.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.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.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.v1.TrainingPipeline.verify(message.trainingPipeline); + if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) { + var error = $root.google.cloud.aiplatform.v1.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.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest */ - CreateTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest) + CreatePipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.trainingPipeline != null) { - if (typeof object.trainingPipeline !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.trainingPipeline: object expected"); - message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipeline); + if (object.pipelineJob != null) { + if (typeof object.pipelineJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreatePipelineJobRequest.pipelineJob: object expected"); + message.pipelineJob = $root.google.cloud.aiplatform.v1.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.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} message CreateTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1.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.v1.TrainingPipeline.toObject(message.trainingPipeline, options); + if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) + object.pipelineJob = $root.google.cloud.aiplatform.v1.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.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.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; })(); - v1.GetTrainingPipelineRequest = (function() { + v1.GetPipelineJobRequest = (function() { /** - * Properties of a GetTrainingPipelineRequest. + * Properties of a GetPipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @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.v1 - * @classdesc Represents a GetTrainingPipelineRequest. - * @implements IGetTrainingPipelineRequest + * @classdesc Represents a GetPipelineJobRequest. + * @implements IGetPipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.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) @@ -44903,35 +51133,35 @@ } /** - * GetTrainingPipelineRequest name. + * GetPipelineJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.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.v1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.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.v1.GetTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.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")) @@ -44940,33 +51170,33 @@ }; /** - * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.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.v1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.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.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.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.v1.GetTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetPipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -44982,30 +51212,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.v1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.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.v1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.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")) @@ -45015,32 +51245,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.v1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest */ - GetTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest) + GetPipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetPipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); + var message = new $root.google.cloud.aiplatform.v1.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.v1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} message GetTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1.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 = {}; @@ -45052,41 +51282,40 @@ }; /** - * Converts this GetTrainingPipelineRequest to JSON. + * Converts this GetPipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.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; })(); - v1.ListTrainingPipelinesRequest = (function() { + v1.ListPipelineJobsRequest = (function() { /** - * Properties of a ListTrainingPipelinesRequest. + * Properties of a ListPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @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 */ /** - * Constructs a new ListTrainingPipelinesRequest. + * Constructs a new ListPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListTrainingPipelinesRequest. - * @implements IListTrainingPipelinesRequest + * @classdesc Represents a ListPipelineJobsRequest. + * @implements IListPipelineJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.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) @@ -45094,67 +51323,59 @@ } /** - * ListTrainingPipelinesRequest parent. + * ListPipelineJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - ListTrainingPipelinesRequest.prototype.parent = ""; + ListPipelineJobsRequest.prototype.parent = ""; /** - * ListTrainingPipelinesRequest filter. + * ListPipelineJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - ListTrainingPipelinesRequest.prototype.filter = ""; + ListPipelineJobsRequest.prototype.filter = ""; /** - * ListTrainingPipelinesRequest pageSize. + * ListPipelineJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - ListTrainingPipelinesRequest.prototype.pageSize = 0; + ListPipelineJobsRequest.prototype.pageSize = 0; /** - * ListTrainingPipelinesRequest pageToken. + * ListPipelineJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest - * @instance - */ - ListTrainingPipelinesRequest.prototype.pageToken = ""; - - /** - * ListTrainingPipelinesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - ListTrainingPipelinesRequest.prototype.readMask = null; + ListPipelineJobsRequest.prototype.pageToken = ""; /** - * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * Creates a new ListPipelineJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.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")) @@ -45165,39 +51386,37 @@ 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 ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -45213,9 +51432,6 @@ 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; @@ -45225,30 +51441,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.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.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")) @@ -45263,26 +51479,21 @@ 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 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.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest */ - ListTrainingPipelinesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest) + ListPipelineJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -45291,24 +51502,19 @@ message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } 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.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} message ListTrainingPipelinesRequest + * @param {google.cloud.aiplatform.v1.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 = {}; @@ -45317,7 +51523,6 @@ object.filter = ""; object.pageSize = 0; object.pageToken = ""; - object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -45327,45 +51532,43 @@ 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 ListTrainingPipelinesRequest to JSON. + * Converts this ListPipelineJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.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; })(); - v1.ListTrainingPipelinesResponse = (function() { + v1.ListPipelineJobsResponse = (function() { /** - * Properties of a ListTrainingPipelinesResponse. + * Properties of a ListPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @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.v1 - * @classdesc Represents a ListTrainingPipelinesResponse. - * @implements IListTrainingPipelinesResponse + * @classdesc Represents a ListPipelineJobsResponse. + * @implements IListPipelineJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.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) @@ -45373,88 +51576,88 @@ } /** - * ListTrainingPipelinesResponse trainingPipelines. - * @member {Array.} trainingPipelines - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * ListPipelineJobsResponse pipelineJobs. + * @member {Array.} pipelineJobs + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @instance */ - ListTrainingPipelinesResponse.prototype.trainingPipelines = $util.emptyArray; + ListPipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; /** - * ListTrainingPipelinesResponse nextPageToken. + * ListPipelineJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesResponse.verify|verify} messages. + * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.ListTrainingPipelinesResponse.verify|verify} messages. + * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.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.v1.TrainingPipeline.decode(reader, reader.uint32())); + if (!(message.pipelineJobs && message.pipelineJobs.length)) + message.pipelineJobs = []; + message.pipelineJobs.push($root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -45468,39 +51671,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.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.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.v1.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.v1.PipelineJob.verify(message.pipelineJobs[i]); if (error) - return "trainingPipelines." + error; + return "pipelineJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -45510,25 +51713,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.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse */ - ListTrainingPipelinesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) + ListPipelineJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); - if (object.trainingPipelines) { - if (!Array.isArray(object.trainingPipelines)) - throw TypeError(".google.cloud.aiplatform.v1.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.v1.ListTrainingPipelinesResponse.trainingPipelines: object expected"); - message.trainingPipelines[i] = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipelines[i]); + var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); + if (object.pipelineJobs) { + if (!Array.isArray(object.pipelineJobs)) + throw TypeError(".google.cloud.aiplatform.v1.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.v1.ListPipelineJobsResponse.pipelineJobs: object expected"); + message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJobs[i]); } } if (object.nextPageToken != null) @@ -45537,26 +51740,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.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} message ListTrainingPipelinesResponse + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.PipelineJob.toObject(message.pipelineJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -45564,37 +51767,37 @@ }; /** - * Converts this ListTrainingPipelinesResponse to JSON. + * Converts this ListPipelineJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.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; })(); - v1.DeleteTrainingPipelineRequest = (function() { + v1.DeletePipelineJobRequest = (function() { /** - * Properties of a DeleteTrainingPipelineRequest. + * Properties of a DeletePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @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.v1 - * @classdesc Represents a DeleteTrainingPipelineRequest. - * @implements IDeleteTrainingPipelineRequest + * @classdesc Represents a DeletePipelineJobRequest. + * @implements IDeletePipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.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) @@ -45602,35 +51805,35 @@ } /** - * DeleteTrainingPipelineRequest name. + * DeletePipelineJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.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.v1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.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.v1.DeleteTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.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")) @@ -45639,33 +51842,33 @@ }; /** - * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.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.v1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.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.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.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.v1.DeleteTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -45681,30 +51884,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.v1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.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.v1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.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")) @@ -45714,32 +51917,32 @@ }; /** - * 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.v1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest */ - DeleteTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest) + DeletePipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); + var message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); 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 DeletePipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1.DeletePipelineJobRequest} message DeletePipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTrainingPipelineRequest.toObject = function toObject(message, options) { + DeletePipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -45751,37 +51954,37 @@ }; /** - * Converts this DeleteTrainingPipelineRequest to JSON. + * Converts this DeletePipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @instance * @returns {Object.} JSON object */ - DeleteTrainingPipelineRequest.prototype.toJSON = function toJSON() { + DeletePipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTrainingPipelineRequest; + return DeletePipelineJobRequest; })(); - v1.CancelTrainingPipelineRequest = (function() { + v1.CancelPipelineJobRequest = (function() { /** - * Properties of a CancelTrainingPipelineRequest. + * Properties of a CancelPipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelTrainingPipelineRequest - * @property {string|null} [name] CancelTrainingPipelineRequest name + * @interface ICancelPipelineJobRequest + * @property {string|null} [name] CancelPipelineJobRequest name */ /** - * Constructs a new CancelTrainingPipelineRequest. + * Constructs a new CancelPipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelTrainingPipelineRequest. - * @implements ICancelTrainingPipelineRequest + * @classdesc Represents a CancelPipelineJobRequest. + * @implements ICancelPipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set */ - function CancelTrainingPipelineRequest(properties) { + function CancelPipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45789,35 +51992,35 @@ } /** - * CancelTrainingPipelineRequest name. + * CancelPipelineJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @instance */ - CancelTrainingPipelineRequest.prototype.name = ""; + CancelPipelineJobRequest.prototype.name = ""; /** - * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * Creates a new CancelPipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest instance */ - CancelTrainingPipelineRequest.create = function create(properties) { - return new CancelTrainingPipelineRequest(properties); + CancelPipelineJobRequest.create = function create(properties) { + return new CancelPipelineJobRequest(properties); }; /** - * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelTrainingPipelineRequest.encode = function encode(message, writer) { + CancelPipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -45826,33 +52029,33 @@ }; /** - * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.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.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest * @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) { + 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.v1.CancelTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -45868,30 +52071,30 @@ }; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest * @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) { + CancelPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelTrainingPipelineRequest message. + * Verifies a CancelPipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @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) { + CancelPipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -45901,32 +52104,32 @@ }; /** - * Creates a CancelTrainingPipelineRequest 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest */ - CancelTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest) + CancelPipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); + var message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelTrainingPipelineRequest 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.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} message CancelTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1.CancelPipelineJobRequest} message CancelPipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelTrainingPipelineRequest.toObject = function toObject(message, options) { + CancelPipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -45938,17 +52141,17 @@ }; /** - * Converts this CancelTrainingPipelineRequest to JSON. + * Converts this CancelPipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @instance * @returns {Object.} JSON object */ - CancelTrainingPipelineRequest.prototype.toJSON = function toJSON() { + CancelPipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelTrainingPipelineRequest; + return CancelPipelineJobRequest; })(); v1.PredictionService = (function() { @@ -55741,6 +61944,7 @@ * @property {boolean|null} [disableEarlyStopping] AutoMlTablesInputs disableEarlyStopping * @property {string|null} [weightColumnName] AutoMlTablesInputs weightColumnName * @property {google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null} [exportEvaluatedDataItemsConfig] AutoMlTablesInputs exportEvaluatedDataItemsConfig + * @property {Array.|null} [additionalExperiments] AutoMlTablesInputs additionalExperiments */ /** @@ -55753,6 +61957,7 @@ */ function AutoMlTablesInputs(properties) { this.transformations = []; + this.additionalExperiments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55839,6 +62044,14 @@ */ AutoMlTablesInputs.prototype.exportEvaluatedDataItemsConfig = null; + /** + * AutoMlTablesInputs additionalExperiments. + * @member {Array.} additionalExperiments + * @memberof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + */ + AutoMlTablesInputs.prototype.additionalExperiments = $util.emptyArray; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -55898,6 +62111,9 @@ writer.uint32(/* id 9, wireType 2 =*/74).string(message.weightColumnName); if (message.exportEvaluatedDataItemsConfig != null && Object.hasOwnProperty.call(message, "exportEvaluatedDataItemsConfig")) $root.google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.encode(message.exportEvaluatedDataItemsConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.additionalExperiments != null && message.additionalExperiments.length) + for (var i = 0; i < message.additionalExperiments.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.additionalExperiments[i]); return writer; }; @@ -55964,6 +62180,11 @@ case 10: message.exportEvaluatedDataItemsConfig = $root.google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.decode(reader, reader.uint32()); break; + case 11: + if (!(message.additionalExperiments && message.additionalExperiments.length)) + message.additionalExperiments = []; + message.additionalExperiments.push(reader.string()); + break; default: reader.skipType(tag & 7); break; @@ -56044,6 +62265,13 @@ if (error) return "exportEvaluatedDataItemsConfig." + error; } + if (message.additionalExperiments != null && message.hasOwnProperty("additionalExperiments")) { + if (!Array.isArray(message.additionalExperiments)) + return "additionalExperiments: array expected"; + for (var i = 0; i < message.additionalExperiments.length; ++i) + if (!$util.isString(message.additionalExperiments[i])) + return "additionalExperiments: string[] expected"; + } return null; }; @@ -56097,6 +62325,13 @@ throw TypeError(".google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.exportEvaluatedDataItemsConfig: object expected"); message.exportEvaluatedDataItemsConfig = $root.google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.fromObject(object.exportEvaluatedDataItemsConfig); } + if (object.additionalExperiments) { + if (!Array.isArray(object.additionalExperiments)) + throw TypeError(".google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.additionalExperiments: array expected"); + message.additionalExperiments = []; + for (var i = 0; i < object.additionalExperiments.length; ++i) + message.additionalExperiments[i] = String(object.additionalExperiments[i]); + } return message; }; @@ -56113,8 +62348,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.transformations = []; + object.additionalExperiments = []; + } if (options.defaults) { object.predictionType = ""; object.targetColumn = ""; @@ -56160,6 +62397,11 @@ object.weightColumnName = message.weightColumnName; if (message.exportEvaluatedDataItemsConfig != null && message.hasOwnProperty("exportEvaluatedDataItemsConfig")) object.exportEvaluatedDataItemsConfig = $root.google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.toObject(message.exportEvaluatedDataItemsConfig, options); + if (message.additionalExperiments && message.additionalExperiments.length) { + object.additionalExperiments = []; + for (var j = 0; j < message.additionalExperiments.length; ++j) + object.additionalExperiments[j] = message.additionalExperiments[j]; + } return object; }; @@ -60063,6 +66305,8 @@ case 0: case 1: case 2: + case 3: + case 4: break; } return null; @@ -60093,6 +66337,14 @@ case 2: message.modelType = 2; break; + case "MOBILE_JETSON_VERSATILE_1": + case 3: + message.modelType = 3; + break; + case "MOBILE_CORAL_VERSATILE_1": + case 4: + message.modelType = 4; + break; } return message; }; @@ -60135,12 +66387,16 @@ * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value * @property {number} CLOUD=1 CLOUD value * @property {number} MOBILE_VERSATILE_1=2 MOBILE_VERSATILE_1 value + * @property {number} MOBILE_JETSON_VERSATILE_1=3 MOBILE_JETSON_VERSATILE_1 value + * @property {number} MOBILE_CORAL_VERSATILE_1=4 MOBILE_CORAL_VERSATILE_1 value */ AutoMlVideoActionRecognitionInputs.ModelType = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; values[valuesById[1] = "CLOUD"] = 1; values[valuesById[2] = "MOBILE_VERSATILE_1"] = 2; + values[valuesById[3] = "MOBILE_JETSON_VERSATILE_1"] = 3; + values[valuesById[4] = "MOBILE_CORAL_VERSATILE_1"] = 4; return values; })(); @@ -210068,6 +216324,269 @@ return ResourceReference; })(); + api.HttpBody = (function() { + + /** + * Properties of a HttpBody. + * @memberof google.api + * @interface IHttpBody + * @property {string|null} [contentType] HttpBody contentType + * @property {Uint8Array|null} [data] HttpBody data + * @property {Array.|null} [extensions] HttpBody extensions + */ + + /** + * Constructs a new HttpBody. + * @memberof google.api + * @classdesc Represents a HttpBody. + * @implements IHttpBody + * @constructor + * @param {google.api.IHttpBody=} [properties] Properties to set + */ + function HttpBody(properties) { + this.extensions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HttpBody contentType. + * @member {string} contentType + * @memberof google.api.HttpBody + * @instance + */ + HttpBody.prototype.contentType = ""; + + /** + * HttpBody data. + * @member {Uint8Array} data + * @memberof google.api.HttpBody + * @instance + */ + HttpBody.prototype.data = $util.newBuffer([]); + + /** + * HttpBody extensions. + * @member {Array.} extensions + * @memberof google.api.HttpBody + * @instance + */ + HttpBody.prototype.extensions = $util.emptyArray; + + /** + * Creates a new HttpBody instance using the specified properties. + * @function create + * @memberof google.api.HttpBody + * @static + * @param {google.api.IHttpBody=} [properties] Properties to set + * @returns {google.api.HttpBody} HttpBody instance + */ + HttpBody.create = function create(properties) { + return new HttpBody(properties); + }; + + /** + * Encodes the specified HttpBody message. Does not implicitly {@link google.api.HttpBody.verify|verify} messages. + * @function encode + * @memberof google.api.HttpBody + * @static + * @param {google.api.IHttpBody} message HttpBody message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpBody.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.contentType != null && Object.hasOwnProperty.call(message, "contentType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.contentType); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (message.extensions != null && message.extensions.length) + for (var i = 0; i < message.extensions.length; ++i) + $root.google.protobuf.Any.encode(message.extensions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified HttpBody message, length delimited. Does not implicitly {@link google.api.HttpBody.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpBody + * @static + * @param {google.api.IHttpBody} message HttpBody message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpBody.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpBody message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpBody + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpBody} HttpBody + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpBody.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpBody(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentType = reader.string(); + break; + case 2: + message.data = reader.bytes(); + break; + case 3: + if (!(message.extensions && message.extensions.length)) + message.extensions = []; + message.extensions.push($root.google.protobuf.Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HttpBody message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpBody + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpBody} HttpBody + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpBody.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HttpBody message. + * @function verify + * @memberof google.api.HttpBody + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpBody.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.contentType != null && message.hasOwnProperty("contentType")) + if (!$util.isString(message.contentType)) + return "contentType: string expected"; + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; + if (message.extensions != null && message.hasOwnProperty("extensions")) { + if (!Array.isArray(message.extensions)) + return "extensions: array expected"; + for (var i = 0; i < message.extensions.length; ++i) { + var error = $root.google.protobuf.Any.verify(message.extensions[i]); + if (error) + return "extensions." + error; + } + } + return null; + }; + + /** + * Creates a HttpBody message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpBody + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpBody} HttpBody + */ + HttpBody.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpBody) + return object; + var message = new $root.google.api.HttpBody(); + if (object.contentType != null) + message.contentType = String(object.contentType); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; + if (object.extensions) { + if (!Array.isArray(object.extensions)) + throw TypeError(".google.api.HttpBody.extensions: array expected"); + message.extensions = []; + for (var i = 0; i < object.extensions.length; ++i) { + if (typeof object.extensions[i] !== "object") + throw TypeError(".google.api.HttpBody.extensions: object expected"); + message.extensions[i] = $root.google.protobuf.Any.fromObject(object.extensions[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a HttpBody message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpBody + * @static + * @param {google.api.HttpBody} message HttpBody + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpBody.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.extensions = []; + if (options.defaults) { + object.contentType = ""; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + } + if (message.contentType != null && message.hasOwnProperty("contentType")) + object.contentType = message.contentType; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.extensions && message.extensions.length) { + object.extensions = []; + for (var j = 0; j < message.extensions.length; ++j) + object.extensions[j] = $root.google.protobuf.Any.toObject(message.extensions[j], options); + } + return object; + }; + + /** + * Converts this HttpBody to JSON. + * @function toJSON + * @memberof google.api.HttpBody + * @instance + * @returns {Object.} JSON object + */ + HttpBody.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return HttpBody; + })(); + return api; })(); diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index 1a022576f87..486333feff5 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -15,8 +15,8 @@ "java_package": "com.google.cloud.aiplatform.v1", "php_namespace": "Google\\Cloud\\AIPlatform\\V1", "ruby_package": "Google::Cloud::AIPlatform::V1", - "(google.api.resource_definition).type": "datalabeling.googleapis.com/AnnotatedDataset", - "(google.api.resource_definition).pattern": "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}" + "(google.api.resource_definition).type": "compute.googleapis.com/Network", + "(google.api.resource_definition).pattern": "projects/{project}/global/networks/{network}" }, "nested": { "AcceleratorType": { @@ -27,8 +27,7 @@ "NVIDIA_TESLA_V100": 3, "NVIDIA_TESLA_P4": 4, "NVIDIA_TESLA_T4": 5, - "TPU_V2": 6, - "TPU_V3": 7 + "NVIDIA_TESLA_A100": 8 } }, "Annotation": { @@ -163,6 +162,90 @@ } } }, + "Artifact": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/Artifact", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 2 + }, + "uri": { + "type": "string", + "id": 6 + }, + "etag": { + "type": "string", + "id": 9 + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 10 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "State", + "id": 13 + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "PENDING": 1, + "LIVE": 2 + } + } + } + }, + "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", @@ -379,6 +462,13 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "bigqueryOutputTable": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } } @@ -486,7 +576,8 @@ "JOB_STATE_FAILED": 5, "JOB_STATE_CANCELLING": 6, "JOB_STATE_CANCELLED": 7, - "JOB_STATE_PAUSED": 8 + "JOB_STATE_PAUSED": 8, + "JOB_STATE_EXPIRED": 9 } }, "MachineSpec": { @@ -533,6 +624,14 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "autoscalingMetricSpecs": { + "rule": "repeated", + "type": "AutoscalingMetricSpec", + "id": 4, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } } } }, @@ -602,6 +701,21 @@ } } }, + "AutoscalingMetricSpec": { + "fields": { + "metricName": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "target": { + "type": "int32", + "id": 2 + } + } + }, "ManualBatchTuningParameters": { "fields": { "batchSize": { @@ -613,6 +727,57 @@ } } }, + "Context": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/Context", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 2 + }, + "etag": { + "type": "string", + "id": 8 + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 9 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parentContexts": { + "rule": "repeated", + "type": "string", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Context" + } + } + } + }, "CustomJob": { "options": { "(google.api.resource).type": "aiplatform.googleapis.com/CustomJob", @@ -713,7 +878,10 @@ }, "network": { "type": "string", - "id": 5 + "id": 5, + "options": { + "(google.api.resource_reference).type": "compute.googleapis.com/Network" + } }, "baseOutputDirectory": { "type": "GcsDestination", @@ -2830,6 +2998,65 @@ } } }, + "Execution": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/Execution", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 2 + }, + "state": { + "type": "State", + "id": 6 + }, + "etag": { + "type": "string", + "id": 9 + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 10 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "NEW": 1, + "RUNNING": 2, + "COMPLETE": 3, + "FAILED": 4, + "CACHED": 5, + "CANCELLED": 6 + } + } + } + }, "HyperparameterTuningJob": { "options": { "(google.api.resource).type": "aiplatform.googleapis.com/HyperparameterTuningJob", @@ -2949,6 +3176,13 @@ "(google.api.resource).pattern": "projects/{project}/locations/{location}/studies/{study}/trials/{trial}" }, "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "id": { "type": "string", "id": 2, @@ -2978,6 +3212,14 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "measurements": { + "rule": "repeated", + "type": "Measurement", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "startTime": { "type": "google.protobuf.Timestamp", "id": 7, @@ -2992,17 +3234,31 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "customJob": { + "clientId": { "type": "string", - "id": 11, + "id": 9, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - }, - "nested": { - "Parameter": { + }, + "infeasibleReason": { + "type": "string", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "customJob": { + "type": "string", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + } + } + }, + "nested": { + "Parameter": { "fields": { "parameterId": { "type": "string", @@ -3138,6 +3394,13 @@ }, "nested": { "DoubleValueSpec": { + "oneofs": { + "_defaultValue": { + "oneof": [ + "defaultValue" + ] + } + }, "fields": { "minValue": { "type": "double", @@ -3152,10 +3415,24 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "defaultValue": { + "type": "double", + "id": 4, + "options": { + "proto3_optional": true + } } } }, "IntegerValueSpec": { + "oneofs": { + "_defaultValue": { + "oneof": [ + "defaultValue" + ] + } + }, "fields": { "minValue": { "type": "int64", @@ -3170,10 +3447,24 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "defaultValue": { + "type": "int64", + "id": 4, + "options": { + "proto3_optional": true + } } } }, "CategoricalValueSpec": { + "oneofs": { + "_defaultValue": { + "oneof": [ + "defaultValue" + ] + } + }, "fields": { "values": { "rule": "repeated", @@ -3182,10 +3473,24 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "defaultValue": { + "type": "string", + "id": 3, + "options": { + "proto3_optional": true + } } } }, "DiscreteValueSpec": { + "oneofs": { + "_defaultValue": { + "oneof": [ + "defaultValue" + ] + } + }, "fields": { "values": { "rule": "repeated", @@ -3194,6 +3499,13 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "defaultValue": { + "type": "double", + "id": 3, + "options": { + "proto3_optional": true + } } } }, @@ -3302,6 +3614,13 @@ }, "Measurement": { "fields": { + "elapsedDuration": { + "type": "google.protobuf.Duration", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "stepCount": { "type": "int64", "id": 2, @@ -5238,18 +5557,343 @@ "type": "google.protobuf.FieldMask", "id": 5 } - } - }, - "ListModelEvaluationSlicesResponse": { - "fields": { - "modelEvaluationSlices": { - "rule": "repeated", - "type": "ModelEvaluationSlice", - "id": 1 + } + }, + "ListModelEvaluationSlicesResponse": { + "fields": { + "modelEvaluationSlices": { + "rule": "repeated", + "type": "ModelEvaluationSlice", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "PipelineJob": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/PipelineJob", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 2 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "pipelineSpec": { + "type": "google.protobuf.Struct", + "id": 7, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "state": { + "type": "PipelineState", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "jobDetail": { + "type": "PipelineJobDetail", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "error": { + "type": "google.rpc.Status", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 11 + }, + "runtimeConfig": { + "type": "RuntimeConfig", + "id": 12 + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 16 + }, + "serviceAccount": { + "type": "string", + "id": 17 + }, + "network": { + "type": "string", + "id": 18, + "options": { + "(google.api.resource_reference).type": "compute.googleapis.com/Network" + } + } + }, + "nested": { + "RuntimeConfig": { + "fields": { + "parameters": { + "keyType": "string", + "type": "google.cloud.aiplatform.v1.Value", + "id": 1 + }, + "gcsOutputDirectory": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + } + } + }, + "PipelineJobDetail": { + "fields": { + "pipelineContext": { + "type": "google.cloud.aiplatform.v1.Context", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "pipelineRunContext": { + "type": "google.cloud.aiplatform.v1.Context", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "taskDetails": { + "rule": "repeated", + "type": "PipelineTaskDetail", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "PipelineTaskDetail": { + "fields": { + "taskId": { + "type": "int64", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parentTaskId": { + "type": "int64", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "taskName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "executorDetail": { + "type": "PipelineTaskExecutorDetail", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "State", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "execution": { + "type": "google.cloud.aiplatform.v1.Execution", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "error": { + "type": "google.rpc.Status", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "inputs": { + "keyType": "string", + "type": "ArtifactList", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "outputs": { + "keyType": "string", + "type": "ArtifactList", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "ArtifactList": { + "fields": { + "artifacts": { + "rule": "repeated", + "type": "google.cloud.aiplatform.v1.Artifact", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "PENDING": 1, + "RUNNING": 2, + "SUCCEEDED": 3, + "CANCEL_PENDING": 4, + "CANCELLING": 5, + "CANCELLED": 6, + "FAILED": 7, + "SKIPPED": 8, + "NOT_TRIGGERED": 9 + } + } + } + }, + "PipelineTaskExecutorDetail": { + "oneofs": { + "details": { + "oneof": [ + "containerDetail", + "customJobDetail" + ] + } + }, + "fields": { + "containerDetail": { + "type": "ContainerDetail", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "customJobDetail": { + "type": "CustomJobDetail", + "id": 2, + "options": { + "deprecated": true, + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "ContainerDetail": { + "fields": { + "mainJob": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + } + }, + "preCachingCheckJob": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + } + } + } }, - "nextPageToken": { - "type": "string", - "id": 2 + "CustomJobDetail": { + "options": { + "deprecated": true + }, + "fields": { + "job": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + } + } + } } } }, @@ -5360,6 +6004,108 @@ "(google.api.method_signature)": "name" } ] + }, + "CreatePipelineJob": { + "requestType": "CreatePipelineJobRequest", + "responseType": "google.cloud.aiplatform.v1.PipelineJob", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/pipelineJobs", + "(google.api.http).body": "pipeline_job", + "(google.api.method_signature)": "parent,pipeline_job,pipeline_job_id" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/pipelineJobs", + "body": "pipeline_job" + } + }, + { + "(google.api.method_signature)": "parent,pipeline_job,pipeline_job_id" + } + ] + }, + "GetPipelineJob": { + "requestType": "GetPipelineJobRequest", + "responseType": "google.cloud.aiplatform.v1.PipelineJob", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/pipelineJobs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/pipelineJobs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListPipelineJobs": { + "requestType": "ListPipelineJobsRequest", + "responseType": "ListPipelineJobsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/pipelineJobs", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/pipelineJobs" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeletePipelineJob": { + "requestType": "DeletePipelineJobRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{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": "/v1/{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": "/v1/{name=projects/*/locations/*/pipelineJobs/*}:cancel", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/pipelineJobs/*}:cancel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] } } }, @@ -5459,6 +6205,102 @@ } } }, + "CreatePipelineJobRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "pipelineJob": { + "type": "google.cloud.aiplatform.v1.PipelineJob", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "pipelineJobId": { + "type": "string", + "id": 3 + } + } + }, + "GetPipelineJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" + } + } + } + }, + "ListPipelineJobsRequest": { + "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 + } + } + }, + "ListPipelineJobsResponse": { + "fields": { + "pipelineJobs": { + "rule": "repeated", + "type": "google.cloud.aiplatform.v1.PipelineJob", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "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": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" + } + } + } + }, "PredictionService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", @@ -5471,17 +6313,23 @@ "options": { "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict", "(google.api.http).body": "*", - "(google.api.method_signature)": "endpoint,instances,parameters" + "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:predictInternal", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "endpoint,parameters,instances" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict", - "body": "*" + "body": "*", + "additional_bindings": { + "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:predictInternal", + "body": "*" + } } }, { - "(google.api.method_signature)": "endpoint,instances,parameters" + "(google.api.method_signature)": "endpoint,parameters,instances" } ] } @@ -6281,6 +7129,11 @@ "exportEvaluatedDataItemsConfig": { "type": "ExportEvaluatedDataItemsConfig", "id": 10 + }, + "additionalExperiments": { + "rule": "repeated", + "type": "string", + "id": 11 } }, "nested": { @@ -6501,7 +7354,9 @@ "values": { "MODEL_TYPE_UNSPECIFIED": 0, "CLOUD": 1, - "MOBILE_VERSATILE_1": 2 + "MOBILE_VERSATILE_1": 2, + "MOBILE_JETSON_VERSATILE_1": 3, + "MOBILE_CORAL_VERSATILE_1": 4 } } } @@ -22755,9 +23610,9 @@ }, "api": { "options": { - "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", + "go_package": "google.golang.org/genproto/googleapis/api/httpbody;httpbody", "java_multiple_files": true, - "java_outer_classname": "ClientProto", + "java_outer_classname": "HttpBodyProto", "java_package": "com.google.api", "objc_class_prefix": "GAPI", "cc_enable_arenas": true @@ -22959,6 +23814,23 @@ "type": "string", "id": 1050, "extend": "google.protobuf.ServiceOptions" + }, + "HttpBody": { + "fields": { + "contentType": { + "type": "string", + "id": 1 + }, + "data": { + "type": "bytes", + "id": 2 + }, + "extensions": { + "rule": "repeated", + "type": "google.protobuf.Any", + "id": 3 + } + } } } }, diff --git a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts index df358eb8654..eea282b0f9f 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts @@ -160,9 +160,15 @@ export class DatasetServiceClient { annotationSpecPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), customJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/customJobs/{custom_job}' ), @@ -178,6 +184,9 @@ export class DatasetServiceClient { endpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' ), @@ -193,6 +202,9 @@ export class DatasetServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -2150,6 +2162,74 @@ export class DatasetServiceClient { ).annotation_spec; } + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + /** * Return a fully-qualified batchPredictionJob resource name string. * @@ -2211,6 +2291,74 @@ export class DatasetServiceClient { ).batch_prediction_job; } + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + /** * Return a fully-qualified customJob resource name string. * @@ -2488,6 +2636,77 @@ export class DatasetServiceClient { return this.pathTemplates.endpointPathTemplate.match(endpointName).endpoint; } + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + /** * Return a fully-qualified hyperparameterTuningJob resource name string. * @@ -2806,6 +3025,58 @@ export class DatasetServiceClient { ).slice; } + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + /** * Return a fully-qualified specialistPool resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json index 2e645f9eef5..6511aa03b6a 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json @@ -2,8 +2,10 @@ "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", "../../protos/google/cloud/aiplatform/v1/annotation.proto", "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", "../../protos/google/cloud/aiplatform/v1/custom_job.proto", "../../protos/google/cloud/aiplatform/v1/data_item.proto", "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", @@ -14,6 +16,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint.proto", "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", "../../protos/google/cloud/aiplatform/v1/io.proto", "../../protos/google/cloud/aiplatform/v1/job_service.proto", @@ -27,6 +30,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", @@ -70,5 +74,6 @@ "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", - "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto" + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts index 550f43b2a17..051d234b5f1 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts @@ -160,9 +160,15 @@ export class EndpointServiceClient { annotationSpecPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), customJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/customJobs/{custom_job}' ), @@ -178,6 +184,9 @@ export class EndpointServiceClient { endpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' ), @@ -193,6 +202,9 @@ export class EndpointServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -1644,6 +1656,74 @@ export class EndpointServiceClient { ).annotation_spec; } + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + /** * Return a fully-qualified batchPredictionJob resource name string. * @@ -1705,6 +1785,74 @@ export class EndpointServiceClient { ).batch_prediction_job; } + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + /** * Return a fully-qualified customJob resource name string. * @@ -1982,6 +2130,77 @@ export class EndpointServiceClient { return this.pathTemplates.endpointPathTemplate.match(endpointName).endpoint; } + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + /** * Return a fully-qualified hyperparameterTuningJob resource name string. * @@ -2300,6 +2519,58 @@ export class EndpointServiceClient { ).slice; } + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + /** * Return a fully-qualified specialistPool resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json index 2e645f9eef5..6511aa03b6a 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json @@ -2,8 +2,10 @@ "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", "../../protos/google/cloud/aiplatform/v1/annotation.proto", "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", "../../protos/google/cloud/aiplatform/v1/custom_job.proto", "../../protos/google/cloud/aiplatform/v1/data_item.proto", "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", @@ -14,6 +16,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint.proto", "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", "../../protos/google/cloud/aiplatform/v1/io.proto", "../../protos/google/cloud/aiplatform/v1/job_service.proto", @@ -27,6 +30,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", @@ -70,5 +74,6 @@ "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", - "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto" + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json index 0e3b8d5dbbf..6ff43fcc0a0 100644 --- a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json @@ -633,17 +633,44 @@ "cancelTrainingPipeline" ] }, + "CreatePipelineJob": { + "methods": [ + "createPipelineJob" + ] + }, + "GetPipelineJob": { + "methods": [ + "getPipelineJob" + ] + }, + "CancelPipelineJob": { + "methods": [ + "cancelPipelineJob" + ] + }, "DeleteTrainingPipeline": { "methods": [ "deleteTrainingPipeline" ] }, + "DeletePipelineJob": { + "methods": [ + "deletePipelineJob" + ] + }, "ListTrainingPipelines": { "methods": [ "listTrainingPipelines", "listTrainingPipelinesStream", "listTrainingPipelinesAsync" ] + }, + "ListPipelineJobs": { + "methods": [ + "listPipelineJobs", + "listPipelineJobsStream", + "listPipelineJobsAsync" + ] } } }, @@ -665,17 +692,44 @@ "cancelTrainingPipeline" ] }, + "CreatePipelineJob": { + "methods": [ + "createPipelineJob" + ] + }, + "GetPipelineJob": { + "methods": [ + "getPipelineJob" + ] + }, + "CancelPipelineJob": { + "methods": [ + "cancelPipelineJob" + ] + }, "DeleteTrainingPipeline": { "methods": [ "deleteTrainingPipeline" ] }, + "DeletePipelineJob": { + "methods": [ + "deletePipelineJob" + ] + }, "ListTrainingPipelines": { "methods": [ "listTrainingPipelines", "listTrainingPipelinesStream", "listTrainingPipelinesAsync" ] + }, + "ListPipelineJobs": { + "methods": [ + "listPipelineJobs", + "listPipelineJobsStream", + "listPipelineJobsAsync" + ] } } } diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts index 3a80adafbc8..a7b340a0979 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts @@ -161,9 +161,15 @@ export class JobServiceClient { annotationSpecPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), customJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/customJobs/{custom_job}' ), @@ -179,6 +185,9 @@ export class JobServiceClient { endpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' ), @@ -194,6 +203,9 @@ export class JobServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -3488,6 +3500,74 @@ export class JobServiceClient { ).annotation_spec; } + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + /** * Return a fully-qualified batchPredictionJob resource name string. * @@ -3549,6 +3629,74 @@ export class JobServiceClient { ).batch_prediction_job; } + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + /** * Return a fully-qualified customJob resource name string. * @@ -3826,6 +3974,77 @@ export class JobServiceClient { return this.pathTemplates.endpointPathTemplate.match(endpointName).endpoint; } + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + /** * Return a fully-qualified hyperparameterTuningJob resource name string. * @@ -4144,6 +4363,58 @@ export class JobServiceClient { ).slice; } + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + /** * Return a fully-qualified specialistPool resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json index 2e645f9eef5..6511aa03b6a 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json @@ -2,8 +2,10 @@ "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", "../../protos/google/cloud/aiplatform/v1/annotation.proto", "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", "../../protos/google/cloud/aiplatform/v1/custom_job.proto", "../../protos/google/cloud/aiplatform/v1/data_item.proto", "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", @@ -14,6 +16,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint.proto", "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", "../../protos/google/cloud/aiplatform/v1/io.proto", "../../protos/google/cloud/aiplatform/v1/job_service.proto", @@ -27,6 +30,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", @@ -70,5 +74,6 @@ "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", - "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto" + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts index 1cd4a231713..e8201573c6d 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts @@ -162,9 +162,15 @@ export class MigrationServiceClient { annotationSpecPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), customJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/customJobs/{custom_job}' ), @@ -180,6 +186,9 @@ export class MigrationServiceClient { endpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' ), @@ -195,6 +204,9 @@ export class MigrationServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -943,6 +955,74 @@ export class MigrationServiceClient { ).annotation_spec; } + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + /** * Return a fully-qualified batchPredictionJob resource name string. * @@ -1004,6 +1084,74 @@ export class MigrationServiceClient { ).batch_prediction_job; } + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + /** * Return a fully-qualified customJob resource name string. * @@ -1281,6 +1429,77 @@ export class MigrationServiceClient { return this.pathTemplates.endpointPathTemplate.match(endpointName).endpoint; } + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + /** * Return a fully-qualified hyperparameterTuningJob resource name string. * @@ -1599,6 +1818,58 @@ export class MigrationServiceClient { ).slice; } + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + /** * Return a fully-qualified specialistPool resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json index 2e645f9eef5..6511aa03b6a 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json @@ -2,8 +2,10 @@ "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", "../../protos/google/cloud/aiplatform/v1/annotation.proto", "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", "../../protos/google/cloud/aiplatform/v1/custom_job.proto", "../../protos/google/cloud/aiplatform/v1/data_item.proto", "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", @@ -14,6 +16,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint.proto", "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", "../../protos/google/cloud/aiplatform/v1/io.proto", "../../protos/google/cloud/aiplatform/v1/job_service.proto", @@ -27,6 +30,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", @@ -70,5 +74,6 @@ "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", - "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto" + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto" ] 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 7141188bb30..157d6ae5da8 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts @@ -161,9 +161,15 @@ export class ModelServiceClient { annotationSpecPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), customJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/customJobs/{custom_job}' ), @@ -179,6 +185,9 @@ export class ModelServiceClient { endpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' ), @@ -194,6 +203,9 @@ export class ModelServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -2105,6 +2117,74 @@ export class ModelServiceClient { ).annotation_spec; } + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + /** * Return a fully-qualified batchPredictionJob resource name string. * @@ -2166,6 +2246,74 @@ export class ModelServiceClient { ).batch_prediction_job; } + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + /** * Return a fully-qualified customJob resource name string. * @@ -2443,6 +2591,77 @@ export class ModelServiceClient { return this.pathTemplates.endpointPathTemplate.match(endpointName).endpoint; } + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + /** * Return a fully-qualified hyperparameterTuningJob resource name string. * @@ -2761,6 +2980,58 @@ export class ModelServiceClient { ).slice; } + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + /** * Return a fully-qualified specialistPool resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json index 2e645f9eef5..6511aa03b6a 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json @@ -2,8 +2,10 @@ "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", "../../protos/google/cloud/aiplatform/v1/annotation.proto", "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", "../../protos/google/cloud/aiplatform/v1/custom_job.proto", "../../protos/google/cloud/aiplatform/v1/data_item.proto", "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", @@ -14,6 +16,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint.proto", "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", "../../protos/google/cloud/aiplatform/v1/io.proto", "../../protos/google/cloud/aiplatform/v1/job_service.proto", @@ -27,6 +30,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", @@ -70,5 +74,6 @@ "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", - "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto" + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto" ] 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 8934451b438..7649e8fb55d 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts @@ -163,9 +163,15 @@ export class PipelineServiceClient { annotationSpecPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), customJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/customJobs/{custom_job}' ), @@ -181,6 +187,9 @@ export class PipelineServiceClient { endpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' ), @@ -196,6 +205,9 @@ export class PipelineServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -216,6 +228,11 @@ export class PipelineServiceClient { 'nextPageToken', 'trainingPipelines' ), + listPipelineJobs: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'pipelineJobs' + ), }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); @@ -236,6 +253,12 @@ export class PipelineServiceClient { const deleteTrainingPipelineMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.DeleteOperationMetadata' ) as gax.protobuf.Type; + const deletePipelineJobResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deletePipelineJobMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.DeleteOperationMetadata' + ) as gax.protobuf.Type; this.descriptors.longrunning = { deleteTrainingPipeline: new this._gaxModule.LongrunningDescriptor( @@ -247,6 +270,11 @@ export class PipelineServiceClient { deleteTrainingPipelineMetadata ) ), + deletePipelineJob: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deletePipelineJobResponse.decode.bind(deletePipelineJobResponse), + deletePipelineJobMetadata.decode.bind(deletePipelineJobMetadata) + ), }; // Put together the default options sent with requests. @@ -300,6 +328,11 @@ export class PipelineServiceClient { 'listTrainingPipelines', 'deleteTrainingPipeline', 'cancelTrainingPipeline', + 'createPipelineJob', + 'getPipelineJob', + 'listPipelineJobs', + 'deletePipelineJob', + 'cancelPipelineJob', ]; for (const methodName of pipelineServiceStubMethods) { const callPromise = this.pipelineServiceStub.then( @@ -695,6 +728,302 @@ export class PipelineServiceClient { callback ); } + createPipelineJob( + request?: protos.google.cloud.aiplatform.v1.ICreatePipelineJobRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IPipelineJob, + protos.google.cloud.aiplatform.v1.ICreatePipelineJobRequest | undefined, + {} | undefined + ] + >; + createPipelineJob( + request: protos.google.cloud.aiplatform.v1.ICreatePipelineJobRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IPipelineJob, + | protos.google.cloud.aiplatform.v1.ICreatePipelineJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createPipelineJob( + request: protos.google.cloud.aiplatform.v1.ICreatePipelineJobRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IPipelineJob, + | protos.google.cloud.aiplatform.v1.ICreatePipelineJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Creates a PipelineJob. A PipelineJob will run immediately when created. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to create the PipelineJob in. + * Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1.PipelineJob} request.pipelineJob + * Required. The PipelineJob to create. + * @param {string} request.pipelineJobId + * The ID to use for the PipelineJob, which will become the final component of + * the PipelineJob name. If not provided, an ID will be automatically + * generated. + * + * This value should be less than 128 characters, and valid characters + * are /{@link 0-9|a-z}-/. + * @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 [PipelineJob]{@link google.cloud.aiplatform.v1.PipelineJob}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createPipelineJob(request); + */ + createPipelineJob( + request?: protos.google.cloud.aiplatform.v1.ICreatePipelineJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IPipelineJob, + | protos.google.cloud.aiplatform.v1.ICreatePipelineJobRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IPipelineJob, + | protos.google.cloud.aiplatform.v1.ICreatePipelineJobRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IPipelineJob, + protos.google.cloud.aiplatform.v1.ICreatePipelineJobRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createPipelineJob(request, options, callback); + } + getPipelineJob( + request?: protos.google.cloud.aiplatform.v1.IGetPipelineJobRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IPipelineJob, + protos.google.cloud.aiplatform.v1.IGetPipelineJobRequest | undefined, + {} | undefined + ] + >; + getPipelineJob( + request: protos.google.cloud.aiplatform.v1.IGetPipelineJobRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IPipelineJob, + | protos.google.cloud.aiplatform.v1.IGetPipelineJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getPipelineJob( + request: protos.google.cloud.aiplatform.v1.IGetPipelineJobRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IPipelineJob, + | protos.google.cloud.aiplatform.v1.IGetPipelineJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Gets a PipelineJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the PipelineJob resource. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * @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 [PipelineJob]{@link google.cloud.aiplatform.v1.PipelineJob}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getPipelineJob(request); + */ + getPipelineJob( + request?: protos.google.cloud.aiplatform.v1.IGetPipelineJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IPipelineJob, + | protos.google.cloud.aiplatform.v1.IGetPipelineJobRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IPipelineJob, + | protos.google.cloud.aiplatform.v1.IGetPipelineJobRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IPipelineJob, + protos.google.cloud.aiplatform.v1.IGetPipelineJobRequest | 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.getPipelineJob(request, options, callback); + } + cancelPipelineJob( + request?: protos.google.cloud.aiplatform.v1.ICancelPipelineJobRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.ICancelPipelineJobRequest | undefined, + {} | undefined + ] + >; + cancelPipelineJob( + request: protos.google.cloud.aiplatform.v1.ICancelPipelineJobRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.ICancelPipelineJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + cancelPipelineJob( + request: protos.google.cloud.aiplatform.v1.ICancelPipelineJobRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.ICancelPipelineJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Cancels a PipelineJob. + * Starts asynchronous cancellation on the PipelineJob. The server + * makes a best effort to cancel the pipeline, but success is not + * guaranteed. Clients can use {@link google.cloud.aiplatform.v1.PipelineService.GetPipelineJob|PipelineService.GetPipelineJob} or + * other methods to check whether the cancellation succeeded or whether the + * pipeline completed despite cancellation. On successful cancellation, + * the PipelineJob is not deleted; instead it becomes a pipeline with + * a {@link google.cloud.aiplatform.v1.PipelineJob.error|PipelineJob.error} value with a {@link google.rpc.Status.code|google.rpc.Status.code} of 1, + * corresponding to `Code.CANCELLED`, and {@link google.cloud.aiplatform.v1.PipelineJob.state|PipelineJob.state} is set to + * `CANCELLED`. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the PipelineJob to cancel. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * @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 [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.cancelPipelineJob(request); + */ + cancelPipelineJob( + request?: protos.google.cloud.aiplatform.v1.ICancelPipelineJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.ICancelPipelineJobRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.ICancelPipelineJobRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.ICancelPipelineJobRequest | 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.cancelPipelineJob(request, options, callback); + } deleteTrainingPipeline( request?: protos.google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, @@ -821,129 +1150,556 @@ export class PipelineServiceClient { * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); */ - async checkDeleteTrainingPipelineProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.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.deleteTrainingPipeline, - gax.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - >; - } - listTrainingPipelines( + async checkDeleteTrainingPipelineProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.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.deleteTrainingPipeline, + gax.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + deletePipelineJob( + request?: protos.google.cloud.aiplatform.v1.IDeletePipelineJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deletePipelineJob( + request: protos.google.cloud.aiplatform.v1.IDeletePipelineJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deletePipelineJob( + request: protos.google.cloud.aiplatform.v1.IDeletePipelineJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes a PipelineJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the PipelineJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * @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 + * const [operation] = await client.deletePipelineJob(request); + * const [response] = await operation.promise(); + */ + deletePipelineJob( + request?: protos.google.cloud.aiplatform.v1.IDeletePipelineJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.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.deletePipelineJob(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deletePipelineJob()`. + * @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 + * const decodedOperation = await checkDeletePipelineJobProgress(name); + * console.log(decodedOperation.result); + * console.log(decodedOperation.done); + * console.log(decodedOperation.metadata); + */ + async checkDeletePipelineJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.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.deletePipelineJob, + gax.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + listTrainingPipelines( + request?: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrainingPipeline[], + protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest | null, + protos.google.cloud.aiplatform.v1.IListTrainingPipelinesResponse + ] + >; + listTrainingPipelines( + request: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + | protos.google.cloud.aiplatform.v1.IListTrainingPipelinesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ITrainingPipeline + > + ): void; + listTrainingPipelines( + request: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + | protos.google.cloud.aiplatform.v1.IListTrainingPipelinesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ITrainingPipeline + > + ): void; + /** + * Lists TrainingPipelines in a Location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the TrainingPipelines from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * Lists the PipelineJobs that match the filter expression. The following + * fields are supported: + * + * * `pipeline_name`: Supports `=` and `!=` comparisons. + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. + * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. + * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. + * * `labels`: Supports key-value equality and key presence. + * + * Filter expressions can be combined together using logical operators + * (`AND` & `OR`). + * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. + * + * The syntax to define filter expression is based on + * https://google.aip.dev/160. + * + * Examples: + * + * * `create_time>"2021-05-18T00:00:00Z" OR + * update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated + * after 2020-05-18 00:00:00 UTC. + * * `labels.env = "prod"` + * PipelineJobs with label "env" set to "prod". + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.next_page_token|ListTrainingPipelinesResponse.next_page_token} of the previous + * {@link google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines|PipelineService.ListTrainingPipelines} call. + * @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 [TrainingPipeline]{@link google.cloud.aiplatform.v1.TrainingPipeline}. + * 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 `listTrainingPipelinesAsync()` + * 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. + */ + listTrainingPipelines( + request?: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + | protos.google.cloud.aiplatform.v1.IListTrainingPipelinesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ITrainingPipeline + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + | protos.google.cloud.aiplatform.v1.IListTrainingPipelinesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ITrainingPipeline + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrainingPipeline[], + protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest | null, + protos.google.cloud.aiplatform.v1.IListTrainingPipelinesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listTrainingPipelines(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the TrainingPipelines from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * Lists the PipelineJobs that match the filter expression. The following + * fields are supported: + * + * * `pipeline_name`: Supports `=` and `!=` comparisons. + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. + * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. + * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. + * * `labels`: Supports key-value equality and key presence. + * + * Filter expressions can be combined together using logical operators + * (`AND` & `OR`). + * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. + * + * The syntax to define filter expression is based on + * https://google.aip.dev/160. + * + * Examples: + * + * * `create_time>"2021-05-18T00:00:00Z" OR + * update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated + * after 2020-05-18 00:00:00 UTC. + * * `labels.env = "prod"` + * PipelineJobs with label "env" set to "prod". + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.next_page_token|ListTrainingPipelinesResponse.next_page_token} of the previous + * {@link google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines|PipelineService.ListTrainingPipelines} call. + * @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 [TrainingPipeline]{@link google.cloud.aiplatform.v1.TrainingPipeline} 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 `listTrainingPipelinesAsync()` + * 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. + */ + listTrainingPipelinesStream( + request?: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listTrainingPipelines.createStream( + this.innerApiCalls.listTrainingPipelines as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listTrainingPipelines`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the TrainingPipelines from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * Lists the PipelineJobs that match the filter expression. The following + * fields are supported: + * + * * `pipeline_name`: Supports `=` and `!=` comparisons. + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. + * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. + * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. + * * `labels`: Supports key-value equality and key presence. + * + * Filter expressions can be combined together using logical operators + * (`AND` & `OR`). + * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. + * + * The syntax to define filter expression is based on + * https://google.aip.dev/160. + * + * Examples: + * + * * `create_time>"2021-05-18T00:00:00Z" OR + * update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated + * after 2020-05-18 00:00:00 UTC. + * * `labels.env = "prod"` + * PipelineJobs with label "env" set to "prod". + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.next_page_token|ListTrainingPipelinesResponse.next_page_token} of the previous + * {@link google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines|PipelineService.ListTrainingPipelines} call. + * @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 + * [TrainingPipeline]{@link google.cloud.aiplatform.v1.TrainingPipeline}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listTrainingPipelinesAsync(request); + * for await (const response of iterable) { + * // process response + * } + */ + listTrainingPipelinesAsync( request?: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listTrainingPipelines.asyncIterate( + this.innerApiCalls['listTrainingPipelines'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + listPipelineJobs( + request?: protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.ITrainingPipeline[], - protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest | null, - protos.google.cloud.aiplatform.v1.IListTrainingPipelinesResponse + protos.google.cloud.aiplatform.v1.IPipelineJob[], + protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListPipelineJobsResponse ] >; - listTrainingPipelines( - request: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + listPipelineJobs( + request: protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, - | protos.google.cloud.aiplatform.v1.IListTrainingPipelinesResponse + protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, + | protos.google.cloud.aiplatform.v1.IListPipelineJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.ITrainingPipeline + protos.google.cloud.aiplatform.v1.IPipelineJob > ): void; - listTrainingPipelines( - request: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + listPipelineJobs( + request: protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, - | protos.google.cloud.aiplatform.v1.IListTrainingPipelinesResponse + protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, + | protos.google.cloud.aiplatform.v1.IListPipelineJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.ITrainingPipeline + protos.google.cloud.aiplatform.v1.IPipelineJob > ): void; /** - * Lists TrainingPipelines in a Location. + * Lists PipelineJobs in a Location. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the TrainingPipelines from. + * Required. The resource name of the Location to list the PipelineJobs from. * Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * Supported fields: * - * * `display_name` supports = and !=. - * - * * `state` supports = and !=. - * - * Some examples of using the filter are: - * - * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` + * * `display_name` supports `=` and `!=`. + * * `state` supports `=` and `!=`. * - * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` + * The following examples demonstrate how to filter the list of PipelineJobs: * - * * `NOT display_name="my_pipeline"` - * - * * `state="PIPELINE_STATE_FAILED"` + * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` + * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` + * * `NOT display_name="my_pipeline"` + * * `state="PIPELINE_STATE_FAILED"` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.next_page_token|ListTrainingPipelinesResponse.next_page_token} of the previous - * {@link google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines|PipelineService.ListTrainingPipelines} call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. + * {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token|ListPipelineJobsResponse.next_page_token} of the previous + * {@link google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs|PipelineService.ListPipelineJobs} call. * @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 [TrainingPipeline]{@link google.cloud.aiplatform.v1.TrainingPipeline}. + * The first element of the array is Array of [PipelineJob]{@link google.cloud.aiplatform.v1.PipelineJob}. * 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 `listTrainingPipelinesAsync()` + * We recommend using `listPipelineJobsAsync()` * 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. */ - listTrainingPipelines( - request?: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + listPipelineJobs( + request?: protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, - | protos.google.cloud.aiplatform.v1.IListTrainingPipelinesResponse + protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, + | protos.google.cloud.aiplatform.v1.IListPipelineJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.ITrainingPipeline + protos.google.cloud.aiplatform.v1.IPipelineJob >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, - | protos.google.cloud.aiplatform.v1.IListTrainingPipelinesResponse + protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, + | protos.google.cloud.aiplatform.v1.IListPipelineJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.ITrainingPipeline + protos.google.cloud.aiplatform.v1.IPipelineJob > ): Promise< [ - protos.google.cloud.aiplatform.v1.ITrainingPipeline[], - protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest | null, - protos.google.cloud.aiplatform.v1.IListTrainingPipelinesResponse + protos.google.cloud.aiplatform.v1.IPipelineJob[], + protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListPipelineJobsResponse ] > | void { request = request || {}; @@ -962,7 +1718,7 @@ export class PipelineServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listTrainingPipelines(request, options, callback); + return this.innerApiCalls.listPipelineJobs(request, options, callback); } /** @@ -970,48 +1726,42 @@ export class PipelineServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the TrainingPipelines from. + * Required. The resource name of the Location to list the PipelineJobs from. * Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * Supported fields: * - * * `display_name` supports = and !=. - * - * * `state` supports = and !=. - * - * Some examples of using the filter are: - * - * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` - * - * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` + * * `display_name` supports `=` and `!=`. + * * `state` supports `=` and `!=`. * - * * `NOT display_name="my_pipeline"` + * The following examples demonstrate how to filter the list of PipelineJobs: * - * * `state="PIPELINE_STATE_FAILED"` + * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` + * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` + * * `NOT display_name="my_pipeline"` + * * `state="PIPELINE_STATE_FAILED"` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.next_page_token|ListTrainingPipelinesResponse.next_page_token} of the previous - * {@link google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines|PipelineService.ListTrainingPipelines} call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. + * {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token|ListPipelineJobsResponse.next_page_token} of the previous + * {@link google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs|PipelineService.ListPipelineJobs} call. * @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 [TrainingPipeline]{@link google.cloud.aiplatform.v1.TrainingPipeline} on 'data' event. + * An object stream which emits an object representing [PipelineJob]{@link google.cloud.aiplatform.v1.PipelineJob} 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 `listTrainingPipelinesAsync()` + * We recommend using `listPipelineJobsAsync()` * 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. */ - listTrainingPipelinesStream( - request?: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + listPipelineJobsStream( + request?: protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -1024,68 +1774,62 @@ export class PipelineServiceClient { }); const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listTrainingPipelines.createStream( - this.innerApiCalls.listTrainingPipelines as gax.GaxCall, + return this.descriptors.page.listPipelineJobs.createStream( + this.innerApiCalls.listPipelineJobs as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listTrainingPipelines`, but returns an iterable object. + * Equivalent to `listPipelineJobs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the TrainingPipelines from. + * Required. The resource name of the Location to list the PipelineJobs from. * Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * Supported fields: * - * * `display_name` supports = and !=. - * - * * `state` supports = and !=. - * - * Some examples of using the filter are: - * - * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` - * - * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` + * * `display_name` supports `=` and `!=`. + * * `state` supports `=` and `!=`. * - * * `NOT display_name="my_pipeline"` + * The following examples demonstrate how to filter the list of PipelineJobs: * - * * `state="PIPELINE_STATE_FAILED"` + * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` + * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` + * * `NOT display_name="my_pipeline"` + * * `state="PIPELINE_STATE_FAILED"` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.next_page_token|ListTrainingPipelinesResponse.next_page_token} of the previous - * {@link google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines|PipelineService.ListTrainingPipelines} call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. + * {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token|ListPipelineJobsResponse.next_page_token} of the previous + * {@link google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs|PipelineService.ListPipelineJobs} call. * @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 - * [TrainingPipeline]{@link google.cloud.aiplatform.v1.TrainingPipeline}. The API will be called under the hood as needed, once per the page, + * [PipelineJob]{@link google.cloud.aiplatform.v1.PipelineJob}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. * @example - * const iterable = client.listTrainingPipelinesAsync(request); + * const iterable = client.listPipelineJobsAsync(request); * for await (const response of iterable) { * // process response * } */ - listTrainingPipelinesAsync( - request?: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, + listPipelineJobsAsync( + request?: protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1097,11 +1841,11 @@ export class PipelineServiceClient { options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listTrainingPipelines.asyncIterate( - this.innerApiCalls['listTrainingPipelines'] as GaxCall, + return this.descriptors.page.listPipelineJobs.asyncIterate( + this.innerApiCalls['listPipelineJobs'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -1268,6 +2012,74 @@ export class PipelineServiceClient { ).annotation_spec; } + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + /** * Return a fully-qualified batchPredictionJob resource name string. * @@ -1329,6 +2141,74 @@ export class PipelineServiceClient { ).batch_prediction_job; } + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + /** * Return a fully-qualified customJob resource name string. * @@ -1606,6 +2486,77 @@ export class PipelineServiceClient { return this.pathTemplates.endpointPathTemplate.match(endpointName).endpoint; } + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + /** * Return a fully-qualified hyperparameterTuningJob resource name string. * @@ -1924,6 +2875,58 @@ export class PipelineServiceClient { ).slice; } + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + /** * Return a fully-qualified specialistPool resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client_config.json index 496507b9ca1..ee1c1f3c06b 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client_config.json @@ -44,6 +44,26 @@ "timeout_millis": 5000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "CreatePipelineJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetPipelineJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListPipelineJobs": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeletePipelineJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CancelPipelineJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json index 2e645f9eef5..6511aa03b6a 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json @@ -2,8 +2,10 @@ "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", "../../protos/google/cloud/aiplatform/v1/annotation.proto", "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", "../../protos/google/cloud/aiplatform/v1/custom_job.proto", "../../protos/google/cloud/aiplatform/v1/data_item.proto", "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", @@ -14,6 +16,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint.proto", "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", "../../protos/google/cloud/aiplatform/v1/io.proto", "../../protos/google/cloud/aiplatform/v1/job_service.proto", @@ -27,6 +30,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", @@ -70,5 +74,6 @@ "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", - "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto" + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts index 85160271bfa..333bb29d055 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts @@ -150,9 +150,15 @@ export class PredictionServiceClient { annotationSpecPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), customJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/customJobs/{custom_job}' ), @@ -168,6 +174,9 @@ export class PredictionServiceClient { endpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' ), @@ -180,6 +189,9 @@ export class PredictionServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -584,6 +596,74 @@ export class PredictionServiceClient { ).annotation_spec; } + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + /** * Return a fully-qualified batchPredictionJob resource name string. * @@ -645,6 +725,74 @@ export class PredictionServiceClient { ).batch_prediction_job; } + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + /** * Return a fully-qualified customJob resource name string. * @@ -922,6 +1070,77 @@ export class PredictionServiceClient { return this.pathTemplates.endpointPathTemplate.match(endpointName).endpoint; } + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + /** * Return a fully-qualified hyperparameterTuningJob resource name string. * @@ -1204,6 +1423,58 @@ export class PredictionServiceClient { ).slice; } + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + /** * Return a fully-qualified specialistPool resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json index 2e645f9eef5..6511aa03b6a 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json @@ -2,8 +2,10 @@ "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", "../../protos/google/cloud/aiplatform/v1/annotation.proto", "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", "../../protos/google/cloud/aiplatform/v1/custom_job.proto", "../../protos/google/cloud/aiplatform/v1/data_item.proto", "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", @@ -14,6 +16,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint.proto", "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", "../../protos/google/cloud/aiplatform/v1/io.proto", "../../protos/google/cloud/aiplatform/v1/job_service.proto", @@ -27,6 +30,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", @@ -70,5 +74,6 @@ "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", - "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto" + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts index 407125ffcb9..06f3f0110e2 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts @@ -167,9 +167,15 @@ export class SpecialistPoolServiceClient { annotationSpecPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), customJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/customJobs/{custom_job}' ), @@ -185,6 +191,9 @@ export class SpecialistPoolServiceClient { endpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' ), @@ -200,6 +209,9 @@ export class SpecialistPoolServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -1309,6 +1321,74 @@ export class SpecialistPoolServiceClient { ).annotation_spec; } + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + /** * Return a fully-qualified batchPredictionJob resource name string. * @@ -1370,6 +1450,74 @@ export class SpecialistPoolServiceClient { ).batch_prediction_job; } + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + /** * Return a fully-qualified customJob resource name string. * @@ -1647,6 +1795,77 @@ export class SpecialistPoolServiceClient { return this.pathTemplates.endpointPathTemplate.match(endpointName).endpoint; } + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + /** * Return a fully-qualified hyperparameterTuningJob resource name string. * @@ -1965,6 +2184,58 @@ export class SpecialistPoolServiceClient { ).slice; } + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + /** * Return a fully-qualified specialistPool resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json index 2e645f9eef5..6511aa03b6a 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json @@ -2,8 +2,10 @@ "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", "../../protos/google/cloud/aiplatform/v1/annotation.proto", "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", "../../protos/google/cloud/aiplatform/v1/custom_job.proto", "../../protos/google/cloud/aiplatform/v1/data_item.proto", "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", @@ -14,6 +16,7 @@ "../../protos/google/cloud/aiplatform/v1/endpoint.proto", "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", "../../protos/google/cloud/aiplatform/v1/io.proto", "../../protos/google/cloud/aiplatform/v1/job_service.proto", @@ -27,6 +30,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", @@ -70,5 +74,6 @@ "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", - "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto" + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto" ] diff --git a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts index 65ae4633004..fed5c68fd96 100644 --- a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts @@ -2366,6 +2366,82 @@ describe('v1.DatasetServiceClient', () => { }); }); + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('batchPredictionJob', () => { const fakePath = '/rendered/path/batchPredictionJob'; const expectedParameters = { @@ -2443,6 +2519,82 @@ describe('v1.DatasetServiceClient', () => { }); }); + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('customJob', () => { const fakePath = '/rendered/path/customJob'; const expectedParameters = { @@ -2776,6 +2928,82 @@ describe('v1.DatasetServiceClient', () => { }); }); + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('hyperparameterTuningJob', () => { const fakePath = '/rendered/path/hyperparameterTuningJob'; const expectedParameters = { @@ -3155,6 +3383,70 @@ describe('v1.DatasetServiceClient', () => { }); }); + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts index b4036d62d6d..2860734b420 100644 --- a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts @@ -1671,6 +1671,82 @@ describe('v1.EndpointServiceClient', () => { }); }); + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('batchPredictionJob', () => { const fakePath = '/rendered/path/batchPredictionJob'; const expectedParameters = { @@ -1748,6 +1824,82 @@ describe('v1.EndpointServiceClient', () => { }); }); + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('customJob', () => { const fakePath = '/rendered/path/customJob'; const expectedParameters = { @@ -2081,6 +2233,82 @@ describe('v1.EndpointServiceClient', () => { }); }); + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('hyperparameterTuningJob', () => { const fakePath = '/rendered/path/hyperparameterTuningJob'; const expectedParameters = { @@ -2460,6 +2688,70 @@ describe('v1.EndpointServiceClient', () => { }); }); + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts index 625903b09e6..1f62d782803 100644 --- a/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts @@ -3822,6 +3822,82 @@ describe('v1.JobServiceClient', () => { }); }); + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('batchPredictionJob', () => { const fakePath = '/rendered/path/batchPredictionJob'; const expectedParameters = { @@ -3899,6 +3975,82 @@ describe('v1.JobServiceClient', () => { }); }); + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('customJob', () => { const fakePath = '/rendered/path/customJob'; const expectedParameters = { @@ -4232,6 +4384,82 @@ describe('v1.JobServiceClient', () => { }); }); + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('hyperparameterTuningJob', () => { const fakePath = '/rendered/path/hyperparameterTuningJob'; const expectedParameters = { @@ -4611,6 +4839,70 @@ describe('v1.JobServiceClient', () => { }); }); + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts index 8375cdf1f0e..aa7a058323b 100644 --- a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts @@ -917,6 +917,82 @@ describe('v1.MigrationServiceClient', () => { }); }); + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('batchPredictionJob', () => { const fakePath = '/rendered/path/batchPredictionJob'; const expectedParameters = { @@ -994,6 +1070,82 @@ describe('v1.MigrationServiceClient', () => { }); }); + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('customJob', () => { const fakePath = '/rendered/path/customJob'; const expectedParameters = { @@ -1327,6 +1479,82 @@ describe('v1.MigrationServiceClient', () => { }); }); + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('hyperparameterTuningJob', () => { const fakePath = '/rendered/path/hyperparameterTuningJob'; const expectedParameters = { @@ -1706,6 +1934,70 @@ describe('v1.MigrationServiceClient', () => { }); }); + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts index adb1333e605..8ee38529704 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts @@ -2336,6 +2336,82 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('batchPredictionJob', () => { const fakePath = '/rendered/path/batchPredictionJob'; const expectedParameters = { @@ -2413,6 +2489,82 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('customJob', () => { const fakePath = '/rendered/path/customJob'; const expectedParameters = { @@ -2746,6 +2898,82 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('hyperparameterTuningJob', () => { const fakePath = '/rendered/path/hyperparameterTuningJob'; const expectedParameters = { @@ -3125,6 +3353,70 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts index e631ebf7f20..8578025cf74 100644 --- a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts @@ -569,18 +569,18 @@ describe('v1.PipelineServiceClient', () => { }); }); - describe('deleteTrainingPipeline', () => { - it('invokes deleteTrainingPipeline without error', async () => { + describe('createPipelineJob', () => { + it('invokes createPipelineJob without error', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest() + new protos.google.cloud.aiplatform.v1.CreatePipelineJobRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -589,31 +589,29 @@ describe('v1.PipelineServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1.PipelineJob() ); - client.innerApiCalls.deleteTrainingPipeline = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteTrainingPipeline(request); - const [response] = await operation.promise(); + client.innerApiCalls.createPipelineJob = stubSimpleCall(expectedResponse); + const [response] = await client.createPipelineJob(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteTrainingPipeline as SinonStub) + (client.innerApiCalls.createPipelineJob as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteTrainingPipeline without error using callback', async () => { + it('invokes createPipelineJob without error using callback', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest() + new protos.google.cloud.aiplatform.v1.CreatePipelineJobRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -622,19 +620,16 @@ describe('v1.PipelineServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1.PipelineJob() ); - client.innerApiCalls.deleteTrainingPipeline = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.createPipelineJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteTrainingPipeline( + client.createPipelineJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - > | null + result?: protos.google.cloud.aiplatform.v1.IPipelineJob | null ) => { if (err) { reject(err); @@ -644,30 +639,26 @@ describe('v1.PipelineServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteTrainingPipeline as SinonStub) + (client.innerApiCalls.createPipelineJob as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes deleteTrainingPipeline with call error', async () => { + it('invokes createPipelineJob with error', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest() + new protos.google.cloud.aiplatform.v1.CreatePipelineJobRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -676,29 +667,28 @@ describe('v1.PipelineServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.deleteTrainingPipeline = stubLongRunningCall( + client.innerApiCalls.createPipelineJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.deleteTrainingPipeline(request), - expectedError - ); + await assert.rejects(client.createPipelineJob(request), expectedError); assert( - (client.innerApiCalls.deleteTrainingPipeline as SinonStub) + (client.innerApiCalls.createPipelineJob as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); + }); - it('invokes deleteTrainingPipeline with LRO error', async () => { + describe('getPipelineJob', () => { + it('invokes getPipelineJob without error', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest() + new protos.google.cloud.aiplatform.v1.GetPipelineJobRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -709,75 +699,110 @@ describe('v1.PipelineServiceClient', () => { }, }, }; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteTrainingPipeline = stubLongRunningCall( - undefined, - undefined, - expectedError + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.PipelineJob() ); - const [operation] = await client.deleteTrainingPipeline(request); - await assert.rejects(operation.promise(), expectedError); + client.innerApiCalls.getPipelineJob = stubSimpleCall(expectedResponse); + const [response] = await client.getPipelineJob(request); + assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteTrainingPipeline as SinonStub) + (client.innerApiCalls.getPipelineJob as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes checkDeleteTrainingPipelineProgress without error', async () => { + it('invokes getPipelineJob without error using callback', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetPipelineJobRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1.PipelineJob() ); - 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.checkDeleteTrainingPipelineProgress( - expectedResponse.name + client.innerApiCalls.getPipelineJob = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getPipelineJob( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IPipelineJob | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getPipelineJob as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteTrainingPipelineProgress with error', async () => { + it('invokes getPipelineJob with error', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetPipelineJobRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( + client.innerApiCalls.getPipelineJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.checkDeleteTrainingPipelineProgress(''), - expectedError + await assert.rejects(client.getPipelineJob(request), expectedError); + assert( + (client.innerApiCalls.getPipelineJob as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('listTrainingPipelines', () => { - it('invokes listTrainingPipelines without error', async () => { + describe('cancelPipelineJob', () => { + it('invokes cancelPipelineJob without error', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + new protos.google.cloud.aiplatform.v1.CancelPipelineJobRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -785,39 +810,30 @@ describe('v1.PipelineServiceClient', () => { }, }, }; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.TrainingPipeline() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.TrainingPipeline() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.TrainingPipeline() - ), - ]; - client.innerApiCalls.listTrainingPipelines = - stubSimpleCall(expectedResponse); - const [response] = await client.listTrainingPipelines(request); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.cancelPipelineJob = stubSimpleCall(expectedResponse); + const [response] = await client.cancelPipelineJob(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listTrainingPipelines as SinonStub) + (client.innerApiCalls.cancelPipelineJob as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listTrainingPipelines without error using callback', async () => { + it('invokes cancelPipelineJob without error using callback', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + new protos.google.cloud.aiplatform.v1.CancelPipelineJobRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -825,27 +841,17 @@ describe('v1.PipelineServiceClient', () => { }, }, }; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.TrainingPipeline() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.TrainingPipeline() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.TrainingPipeline() - ), - ]; - client.innerApiCalls.listTrainingPipelines = + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.cancelPipelineJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listTrainingPipelines( + client.cancelPipelineJob( request, ( err?: Error | null, - result?: - | protos.google.cloud.aiplatform.v1.ITrainingPipeline[] - | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -858,23 +864,23 @@ describe('v1.PipelineServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listTrainingPipelines as SinonStub) + (client.innerApiCalls.cancelPipelineJob as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listTrainingPipelines with error', async () => { + it('invokes cancelPipelineJob with error', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + new protos.google.cloud.aiplatform.v1.CancelPipelineJobRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -883,52 +889,893 @@ describe('v1.PipelineServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listTrainingPipelines = stubSimpleCall( + client.innerApiCalls.cancelPipelineJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listTrainingPipelines(request), + await assert.rejects(client.cancelPipelineJob(request), expectedError); + assert( + (client.innerApiCalls.cancelPipelineJob as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteTrainingPipeline', () => { + it('invokes deleteTrainingPipeline without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteTrainingPipeline = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteTrainingPipeline(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteTrainingPipeline as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteTrainingPipeline without error using callback', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteTrainingPipeline = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteTrainingPipeline( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteTrainingPipeline as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteTrainingPipeline with call error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteTrainingPipeline = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteTrainingPipeline(request), + expectedError + ); + assert( + (client.innerApiCalls.deleteTrainingPipeline as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteTrainingPipeline with LRO error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteTrainingPipeline = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteTrainingPipeline(request); + await assert.rejects(operation.promise(), expectedError); + assert( + (client.innerApiCalls.deleteTrainingPipeline as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes checkDeleteTrainingPipelineProgress without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + 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.checkDeleteTrainingPipelineProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteTrainingPipelineProgress with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + 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.checkDeleteTrainingPipelineProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deletePipelineJob', () => { + it('invokes deletePipelineJob without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeletePipelineJobRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deletePipelineJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deletePipelineJob(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deletePipelineJob as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deletePipelineJob without error using callback', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeletePipelineJobRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deletePipelineJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deletePipelineJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deletePipelineJob as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deletePipelineJob with call error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeletePipelineJobRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deletePipelineJob = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deletePipelineJob(request), expectedError); + assert( + (client.innerApiCalls.deletePipelineJob as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deletePipelineJob with LRO error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeletePipelineJobRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deletePipelineJob = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deletePipelineJob(request); + await assert.rejects(operation.promise(), expectedError); + assert( + (client.innerApiCalls.deletePipelineJob as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes checkDeletePipelineJobProgress without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + 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.checkDeletePipelineJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeletePipelineJobProgress with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + 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.checkDeletePipelineJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listTrainingPipelines', () => { + it('invokes listTrainingPipelines without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.TrainingPipeline() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.TrainingPipeline() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.TrainingPipeline() + ), + ]; + client.innerApiCalls.listTrainingPipelines = + stubSimpleCall(expectedResponse); + const [response] = await client.listTrainingPipelines(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listTrainingPipelines as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listTrainingPipelines without error using callback', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.TrainingPipeline() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.TrainingPipeline() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.TrainingPipeline() + ), + ]; + client.innerApiCalls.listTrainingPipelines = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listTrainingPipelines( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.aiplatform.v1.ITrainingPipeline[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listTrainingPipelines as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listTrainingPipelines with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listTrainingPipelines = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.listTrainingPipelines(request), + expectedError + ); + assert( + (client.innerApiCalls.listTrainingPipelines as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listTrainingPipelinesStream without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.TrainingPipeline() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.TrainingPipeline() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.TrainingPipeline() + ), + ]; + client.descriptors.page.listTrainingPipelines.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listTrainingPipelinesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.TrainingPipeline[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.TrainingPipeline) => { + 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.listTrainingPipelines + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listTrainingPipelines, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listTrainingPipelines + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listTrainingPipelinesStream with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listTrainingPipelines.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listTrainingPipelinesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.TrainingPipeline[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.TrainingPipeline) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.listTrainingPipelines + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listTrainingPipelines, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listTrainingPipelines + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listTrainingPipelines without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.TrainingPipeline() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.TrainingPipeline() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.TrainingPipeline() + ), + ]; + client.descriptors.page.listTrainingPipelines.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.ITrainingPipeline[] = + []; + const iterable = client.listTrainingPipelinesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listTrainingPipelines + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listTrainingPipelines + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listTrainingPipelines with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listTrainingPipelines.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listTrainingPipelinesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.ITrainingPipeline[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listTrainingPipelines + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listTrainingPipelines + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('listPipelineJobs', () => { + it('invokes listPipelineJobs without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.PipelineJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.PipelineJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.PipelineJob() + ), + ]; + client.innerApiCalls.listPipelineJobs = stubSimpleCall(expectedResponse); + const [response] = await client.listPipelineJobs(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listPipelineJobs as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listPipelineJobs without error using callback', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.PipelineJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.PipelineJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.PipelineJob() + ), + ]; + client.innerApiCalls.listPipelineJobs = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listPipelineJobs( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IPipelineJob[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listPipelineJobs as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listPipelineJobs with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listPipelineJobs = stubSimpleCall( + undefined, expectedError ); + await assert.rejects(client.listPipelineJobs(request), expectedError); assert( - (client.innerApiCalls.listTrainingPipelines as SinonStub) + (client.innerApiCalls.listPipelineJobs as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listTrainingPipelinesStream without error', async () => { + it('invokes listPipelineJobsStream without error', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.TrainingPipeline() + new protos.google.cloud.aiplatform.v1.PipelineJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.TrainingPipeline() + new protos.google.cloud.aiplatform.v1.PipelineJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.TrainingPipeline() + new protos.google.cloud.aiplatform.v1.PipelineJob() ), ]; - client.descriptors.page.listTrainingPipelines.createStream = + client.descriptors.page.listPipelineJobs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listTrainingPipelinesStream(request); + const stream = client.listPipelineJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.TrainingPipeline[] = - []; + const responses: protos.google.cloud.aiplatform.v1.PipelineJob[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1.TrainingPipeline) => { + (response: protos.google.cloud.aiplatform.v1.PipelineJob) => { responses.push(response); } ); @@ -942,43 +1789,38 @@ describe('v1.PipelineServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listTrainingPipelines - .createStream as SinonStub - ) + (client.descriptors.page.listPipelineJobs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listTrainingPipelines, request) + .calledWith(client.innerApiCalls.listPipelineJobs, request) ); assert.strictEqual( ( - client.descriptors.page.listTrainingPipelines - .createStream as SinonStub + client.descriptors.page.listPipelineJobs.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listTrainingPipelinesStream with error', async () => { + it('invokes listPipelineJobsStream with error', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listTrainingPipelines.createStream = + client.descriptors.page.listPipelineJobs.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listTrainingPipelinesStream(request); + const stream = client.listPipelineJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.TrainingPipeline[] = - []; + const responses: protos.google.cloud.aiplatform.v1.PipelineJob[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1.TrainingPipeline) => { + (response: protos.google.cloud.aiplatform.v1.PipelineJob) => { responses.push(response); } ); @@ -991,102 +1833,92 @@ describe('v1.PipelineServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listTrainingPipelines - .createStream as SinonStub - ) + (client.descriptors.page.listPipelineJobs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listTrainingPipelines, request) + .calledWith(client.innerApiCalls.listPipelineJobs, request) ); assert.strictEqual( ( - client.descriptors.page.listTrainingPipelines - .createStream as SinonStub + client.descriptors.page.listPipelineJobs.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listTrainingPipelines without error', async () => { + it('uses async iteration with listPipelineJobs without error', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.TrainingPipeline() + new protos.google.cloud.aiplatform.v1.PipelineJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.TrainingPipeline() + new protos.google.cloud.aiplatform.v1.PipelineJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.TrainingPipeline() + new protos.google.cloud.aiplatform.v1.PipelineJob() ), ]; - client.descriptors.page.listTrainingPipelines.asyncIterate = + client.descriptors.page.listPipelineJobs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1.ITrainingPipeline[] = - []; - const iterable = client.listTrainingPipelinesAsync(request); + const responses: protos.google.cloud.aiplatform.v1.IPipelineJob[] = []; + const iterable = client.listPipelineJobsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listTrainingPipelines - .asyncIterate as SinonStub + client.descriptors.page.listPipelineJobs.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listTrainingPipelines - .asyncIterate as SinonStub + client.descriptors.page.listPipelineJobs.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listTrainingPipelines with error', async () => { + it('uses async iteration with listPipelineJobs with error', async () => { const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() + new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listTrainingPipelines.asyncIterate = + client.descriptors.page.listPipelineJobs.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listTrainingPipelinesAsync(request); + const iterable = client.listPipelineJobsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1.ITrainingPipeline[] = - []; + const responses: protos.google.cloud.aiplatform.v1.IPipelineJob[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listTrainingPipelines - .asyncIterate as SinonStub + client.descriptors.page.listPipelineJobs.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listTrainingPipelines - .asyncIterate as SinonStub + client.descriptors.page.listPipelineJobs.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); @@ -1259,6 +2091,82 @@ describe('v1.PipelineServiceClient', () => { }); }); + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('batchPredictionJob', () => { const fakePath = '/rendered/path/batchPredictionJob'; const expectedParameters = { @@ -1336,6 +2244,82 @@ describe('v1.PipelineServiceClient', () => { }); }); + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('customJob', () => { const fakePath = '/rendered/path/customJob'; const expectedParameters = { @@ -1669,6 +2653,82 @@ describe('v1.PipelineServiceClient', () => { }); }); + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('hyperparameterTuningJob', () => { const fakePath = '/rendered/path/hyperparameterTuningJob'; const expectedParameters = { @@ -2048,6 +3108,70 @@ describe('v1.PipelineServiceClient', () => { }); }); + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts index d596b6bcba9..c58233e1f25 100644 --- a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts @@ -406,6 +406,82 @@ describe('v1.PredictionServiceClient', () => { }); }); + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('batchPredictionJob', () => { const fakePath = '/rendered/path/batchPredictionJob'; const expectedParameters = { @@ -483,6 +559,82 @@ describe('v1.PredictionServiceClient', () => { }); }); + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('customJob', () => { const fakePath = '/rendered/path/customJob'; const expectedParameters = { @@ -816,6 +968,82 @@ describe('v1.PredictionServiceClient', () => { }); }); + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('hyperparameterTuningJob', () => { const fakePath = '/rendered/path/hyperparameterTuningJob'; const expectedParameters = { @@ -1146,6 +1374,70 @@ describe('v1.PredictionServiceClient', () => { }); }); + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts index e07d2f5e041..5639db00f0a 100644 --- a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts @@ -1436,6 +1436,83 @@ describe('v1.SpecialistPoolServiceClient', () => { }); }); + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('batchPredictionJob', () => { const fakePath = '/rendered/path/batchPredictionJob'; const expectedParameters = { @@ -1514,6 +1591,83 @@ describe('v1.SpecialistPoolServiceClient', () => { }); }); + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('customJob', () => { const fakePath = '/rendered/path/customJob'; const expectedParameters = { @@ -1852,6 +2006,83 @@ describe('v1.SpecialistPoolServiceClient', () => { }); }); + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('hyperparameterTuningJob', () => { const fakePath = '/rendered/path/hyperparameterTuningJob'; const expectedParameters = { @@ -2236,6 +2467,71 @@ describe('v1.SpecialistPoolServiceClient', () => { }); }); + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = {