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 3212d0ce555..21568cee04d 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 @@ -154,7 +154,7 @@ message BatchPredictionJob { // Required. The user-defined name of this BatchPredictionJob. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // The name of the Model resoure that produces the predictions via this job, + // The name of the Model resource that produces the predictions via this job, // must share the same ancestor Location. // Starting this job has no impact on any existing deployments of the Model // and their resources. 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 38d68c013ff..af3de68b773 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 @@ -106,7 +106,6 @@ message CustomJob { } // Represents the spec of a CustomJob. -// Next Id: 15 message CustomJobSpec { // Required. The spec of the worker pools including machine type and Docker image. // All worker pools except the first one are optional and can be skipped by diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto index 9adfec3fe84..516092ee159 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto @@ -525,6 +525,10 @@ message ImportFeatureValuesResponse { // * Having a null timestamp. // * Not being parsable (applicable for CSV sources). int64 invalid_row_count = 6; + + // The number rows that weren't ingested due to having feature timestamps + // outside the retention boundary. + int64 timestamp_outside_retention_rows_count = 4; } // Request message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValues]. @@ -1193,6 +1197,10 @@ message ImportFeatureValuesOperationMetadata { // * Having a null timestamp. // * Not being parsable (applicable for CSV sources). int64 invalid_row_count = 6; + + // The number rows that weren't ingested due to having timestamps outside the + // retention boundary. + int64 timestamp_outside_retention_rows_count = 7; } // Details of operations that exports Features values. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto index 82198a26b6a..7e987dfde5b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto @@ -388,6 +388,9 @@ message ListCustomJobsRequest { // * `state` supports `=`, `!=` comparisons. // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence // // Some examples of using the filter are: // @@ -395,6 +398,8 @@ message ListCustomJobsRequest { // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` // * `NOT display_name="my_job"` // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` string filter = 2; // The standard list page size. @@ -493,6 +498,9 @@ message ListDataLabelingJobsRequest { // * `state` supports `=`, `!=` comparisons. // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence // // Some examples of using the filter are: // @@ -500,6 +508,8 @@ message ListDataLabelingJobsRequest { // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` // * `NOT display_name="my_job"` // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` string filter = 2; // The standard list page size. @@ -603,6 +613,9 @@ message ListHyperparameterTuningJobsRequest { // * `state` supports `=`, `!=` comparisons. // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence // // Some examples of using the filter are: // @@ -610,6 +623,8 @@ message ListHyperparameterTuningJobsRequest { // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` // * `NOT display_name="my_job"` // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` string filter = 2; // The standard list page size. @@ -711,6 +726,9 @@ message ListBatchPredictionJobsRequest { // * `state` supports `=`, `!=` comparisons. // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence // // Some examples of using the filter are: // @@ -718,6 +736,8 @@ message ListBatchPredictionJobsRequest { // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` // * `NOT display_name="my_job"` // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` string filter = 2; // The standard list page size. @@ -891,6 +911,9 @@ message ListModelDeploymentMonitoringJobsRequest { // * `state` supports `=`, `!=` comparisons. // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence // // Some examples of using the filter are: // @@ -898,6 +921,8 @@ message ListModelDeploymentMonitoringJobsRequest { // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` // * `NOT display_name="my_job"` // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` string filter = 2; // The standard list page size. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto index c601d46af9a..e1dd4fcc077 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto @@ -228,6 +228,17 @@ service MetadataService { option (google.api.method_signature) = "context,child_contexts"; } + // Remove a set of children contexts from a parent Context. If any of the + // child Contexts were NOT added to the parent Context, they are + // simply skipped. + rpc RemoveContextChildren(RemoveContextChildrenRequest) returns (RemoveContextChildrenResponse) { + option (google.api.http) = { + post: "/v1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:removeContextChildren" + body: "*" + }; + option (google.api.method_signature) = "context,child_contexts"; + } + // Retrieves Artifacts and Executions within the specified Context, connected // by Event edges and returned as a LineageSubgraph. rpc QueryContextLineageSubgraph(QueryContextLineageSubgraphRequest) returns (LineageSubgraph) { @@ -549,6 +560,14 @@ message ListArtifactsRequest { // // For example: `display_name = "test" AND metadata.field1.bool_value = true`. string filter = 4; + + // How the list of messages is ordered. Specify the values to order by and an + // ordering operation. The default sorting order is ascending. To specify + // descending order for a field, users append a " desc" suffix; for example: + // "foo desc, bar". + // Subfields are specified with a `.` character, such as foo.bar. + // see https://google.aip.dev/132#ordering for more details. + string order_by = 5; } // Response message for [MetadataService.ListArtifacts][google.cloud.aiplatform.v1.MetadataService.ListArtifacts]. @@ -735,6 +754,14 @@ message ListContextsRequest { // // For example: `display_name = "test" AND metadata.field1.bool_value = true`. string filter = 4; + + // How the list of messages is ordered. Specify the values to order by and an + // ordering operation. The default sorting order is ascending. To specify + // descending order for a field, users append a " desc" suffix; for example: + // "foo desc, bar". + // Subfields are specified with a `.` character, such as foo.bar. + // see https://google.aip.dev/132#ordering for more details. + string order_by = 5; } // Response message for [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts]. @@ -890,6 +917,31 @@ message AddContextChildrenResponse { } +// Request message for +// [MetadataService.DeleteContextChildrenRequest][]. +message RemoveContextChildrenRequest { + // Required. The resource name of the parent Context. + // + // Format: + // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + string context = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + } + ]; + + // The resource names of the child Contexts. + repeated string child_contexts = 2 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + }]; +} + +// Response message for [MetadataService.RemoveContextChildren][google.cloud.aiplatform.v1.MetadataService.RemoveContextChildren]. +message RemoveContextChildrenResponse { + +} + // Request message for [MetadataService.QueryContextLineageSubgraph][google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraph]. message QueryContextLineageSubgraphRequest { // Required. The resource name of the Context whose Artifacts and Executions @@ -999,6 +1051,14 @@ message ListExecutionsRequest { // logical operators (`AND` & `OR`). // For example: `display_name = "test" AND metadata.field1.bool_value = true`. string filter = 4; + + // How the list of messages is ordered. Specify the values to order by and an + // ordering operation. The default sorting order is ascending. To specify + // descending order for a field, users append a " desc" suffix; for example: + // "foo desc, bar". + // Subfields are specified with a `.` character, such as foo.bar. + // see https://google.aip.dev/132#ordering for more details. + string order_by = 5; } // Response message for [MetadataService.ListExecutions][google.cloud.aiplatform.v1.MetadataService.ListExecutions]. 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 41fef46685d..0cd46b32902 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 @@ -201,6 +201,9 @@ message ListTrainingPipelinesRequest { // * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence // // Some examples of using the filter are: // diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index 5141dfa2741..63fb0d9d0c4 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto @@ -156,7 +156,7 @@ message BatchPredictionJob { // Required. The user-defined name of this BatchPredictionJob. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // The name of the Model resoure that produces the predictions via this job, + // The name of the Model resource that produces the predictions via this job, // must share the same ancestor Location. // Starting this job has no impact on any existing deployments of the Model // and their resources. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto index ad66542d356..24d384ff603 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -106,7 +106,6 @@ message CustomJob { } // Represents the spec of a CustomJob. -// Next Id: 15 message CustomJobSpec { // Required. The spec of the worker pools including machine type and Docker image. // All worker pools except the first one are optional and can be skipped by diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto index 6acace9e7d7..56df4670f7f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -29,6 +29,7 @@ import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/type/interval.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; @@ -290,8 +291,7 @@ service FeaturestoreService { // returned from reads and exports may be inconsistent. If consistency is // required, the caller must retry the same delete request again and wait till // the new operation returned is marked as successfully done. - rpc DeleteFeatureValues(DeleteFeatureValuesRequest) - returns (google.longrunning.Operation) { + rpc DeleteFeatureValues(DeleteFeatureValuesRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:deleteFeatureValues" body: "*" @@ -548,6 +548,10 @@ message ImportFeatureValuesResponse { // * Having a null timestamp. // * Not being parsable (applicable for CSV sources). int64 invalid_row_count = 6; + + // The number rows that weren't ingested due to having feature timestamps + // outside the retention boundary. + int64 timestamp_outside_retention_rows_count = 4; } // Request message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues]. @@ -1216,6 +1220,10 @@ message ImportFeatureValuesOperationMetadata { // * Having a null timestamp. // * Not being parsable (applicable for CSV sources). int64 invalid_row_count = 6; + + // The number rows that weren't ingested due to having timestamps outside the + // retention boundary. + int64 timestamp_outside_retention_rows_count = 7; } // Details of operations that exports Features values. @@ -1254,27 +1262,47 @@ message BatchCreateFeaturesOperationMetadata { GenericOperationMetadata generic_metadata = 1; } -// Request message for -// [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues]. +// Request message for [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues]. message DeleteFeatureValuesRequest { // Message to select entity. // If an entity id is selected, all the feature values corresponding to the // entity id will be deleted, including the entityId. message SelectEntity { - // Required. Selectors choosing feature values of which entity id to be - // deleted from the EntityType. - EntityIdSelector entity_id_selector = 1 - [(google.api.field_behavior) = REQUIRED]; + // Required. Selectors choosing feature values of which entity id to be deleted from + // the EntityType. + EntityIdSelector entity_id_selector = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Message to select time range and feature. + // Values of the selected feature generated within an inclusive time range + // will be deleted. + message SelectTimeRangeAndFeature { + // Required. Select feature generated within a half-inclusive time range. + // The time range is lower inclusive and upper exclusive. + google.type.Interval time_range = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Selectors choosing which feature values to be deleted from the + // EntityType. + FeatureSelector feature_selector = 2 [(google.api.field_behavior) = REQUIRED]; + + // If set, data will not be deleted from online storage. + // When time range is older than the data in online storage, setting this to + // be true will make the deletion have no impact on online serving. + bool skip_online_storage_delete = 3; } // Defines options to select feature values to be deleted. oneof DeleteOption { // Select feature values to be deleted by specifying entities. SelectEntity select_entity = 2; + + // Select feature values to be deleted by specifying time range and + // features. + SelectTimeRangeAndFeature select_time_range_and_feature = 3; } - // Required. The resource name of the EntityType grouping the Features for - // which values are being deleted from. Format: + // Required. The resource name of the EntityType grouping the Features for which values + // are being deleted from. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` string entity_type = 1 [ (google.api.field_behavior) = REQUIRED, @@ -1284,9 +1312,10 @@ message DeleteFeatureValuesRequest { ]; } -// Response message for -// [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues]. -message DeleteFeatureValuesResponse {} +// Response message for [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues]. +message DeleteFeatureValuesResponse { + +} // Selector for entityId. Getting ids from the given source. message EntityIdSelector { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto index 48cf08aa794..68492a64c1d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto @@ -388,6 +388,9 @@ message ListCustomJobsRequest { // * `state` supports `=`, `!=` comparisons. // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence // // Some examples of using the filter are: // @@ -395,6 +398,8 @@ message ListCustomJobsRequest { // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` // * `NOT display_name="my_job"` // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` string filter = 2; // The standard list page size. @@ -493,6 +498,9 @@ message ListDataLabelingJobsRequest { // * `state` supports `=`, `!=` comparisons. // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence // // Some examples of using the filter are: // @@ -500,6 +508,8 @@ message ListDataLabelingJobsRequest { // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` // * `NOT display_name="my_job"` // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` string filter = 2; // The standard list page size. @@ -603,6 +613,9 @@ message ListHyperparameterTuningJobsRequest { // * `state` supports `=`, `!=` comparisons. // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence // // Some examples of using the filter are: // @@ -610,6 +623,8 @@ message ListHyperparameterTuningJobsRequest { // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` // * `NOT display_name="my_job"` // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` string filter = 2; // The standard list page size. @@ -711,6 +726,9 @@ message ListBatchPredictionJobsRequest { // * `state` supports `=`, `!=` comparisons. // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence // // Some examples of using the filter are: // @@ -718,6 +736,8 @@ message ListBatchPredictionJobsRequest { // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` // * `NOT display_name="my_job"` // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` string filter = 2; // The standard list page size. @@ -891,6 +911,9 @@ message ListModelDeploymentMonitoringJobsRequest { // * `state` supports `=`, `!=` comparisons. // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence // // Some examples of using the filter are: // @@ -898,6 +921,8 @@ message ListModelDeploymentMonitoringJobsRequest { // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` // * `NOT display_name="my_job"` // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` string filter = 2; // The standard list page size. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto index afcf68d0be4..abdcb600c23 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto @@ -228,6 +228,17 @@ service MetadataService { option (google.api.method_signature) = "context,child_contexts"; } + // Remove a set of children contexts from a parent Context. If any of the + // child Contexts were NOT added to the parent Context, they are + // simply skipped. + rpc RemoveContextChildren(RemoveContextChildrenRequest) returns (RemoveContextChildrenResponse) { + option (google.api.http) = { + post: "/v1beta1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:removeContextChildren" + body: "*" + }; + option (google.api.method_signature) = "context,child_contexts"; + } + // Retrieves Artifacts and Executions within the specified Context, connected // by Event edges and returned as a LineageSubgraph. rpc QueryContextLineageSubgraph(QueryContextLineageSubgraphRequest) returns (LineageSubgraph) { @@ -549,6 +560,14 @@ message ListArtifactsRequest { // // For example: `display_name = "test" AND metadata.field1.bool_value = true`. string filter = 4; + + // How the list of messages is ordered. Specify the values to order by and an + // ordering operation. The default sorting order is ascending. To specify + // descending order for a field, users append a " desc" suffix; for example: + // "foo desc, bar". + // Subfields are specified with a `.` character, such as foo.bar. + // see https://google.aip.dev/132#ordering for more details. + string order_by = 5; } // Response message for [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]. @@ -735,6 +754,14 @@ message ListContextsRequest { // // For example: `display_name = "test" AND metadata.field1.bool_value = true`. string filter = 4; + + // How the list of messages is ordered. Specify the values to order by and an + // ordering operation. The default sorting order is ascending. To specify + // descending order for a field, users append a " desc" suffix; for example: + // "foo desc, bar". + // Subfields are specified with a `.` character, such as foo.bar. + // see https://google.aip.dev/132#ordering for more details. + string order_by = 5; } // Response message for [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]. @@ -890,6 +917,31 @@ message AddContextChildrenResponse { } +// Request message for +// [MetadataService.DeleteContextChildrenRequest][]. +message RemoveContextChildrenRequest { + // Required. The resource name of the parent Context. + // + // Format: + // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + string context = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + } + ]; + + // The resource names of the child Contexts. + repeated string child_contexts = 2 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + }]; +} + +// Response message for [MetadataService.RemoveContextChildren][google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildren]. +message RemoveContextChildrenResponse { + +} + // Request message for [MetadataService.QueryContextLineageSubgraph][google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraph]. message QueryContextLineageSubgraphRequest { // Required. The resource name of the Context whose Artifacts and Executions @@ -999,6 +1051,14 @@ message ListExecutionsRequest { // logical operators (`AND` & `OR`). // For example: `display_name = "test" AND metadata.field1.bool_value = true`. string filter = 4; + + // How the list of messages is ordered. Specify the values to order by and an + // ordering operation. The default sorting order is ascending. To specify + // descending order for a field, users append a " desc" suffix; for example: + // "foo desc, bar". + // Subfields are specified with a `.` character, such as foo.bar. + // see https://google.aip.dev/132#ordering for more details. + string order_by = 5; } // Response message for [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto index 3dc687e5f10..955314ecd44 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto @@ -59,8 +59,8 @@ message ModelMonitoringObjectiveConfig { oneof data_source { // The resource name of the Dataset used to train this Model. string dataset = 3 [(google.api.resource_reference) = { - type: "aiplatform.googleapis.com/Dataset" - }]; + type: "aiplatform.googleapis.com/Dataset" + }]; // The Google Cloud Storage uri of the unmanaged Dataset used to train // this Model. @@ -135,10 +135,8 @@ message ModelMonitoringObjectiveConfig { // The config for integrating with Vertex Explainable AI. Only applicable if // the Model has explanation_spec populated. message ExplanationConfig { - // Output from - // [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] - // for Model Monitoring baseline dataset, which can be used to generate - // baseline attribution scores. + // Output from [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] for Model Monitoring baseline dataset, + // which can be used to generate baseline attribution scores. message ExplanationBaseline { // The storage format of the predictions generated BatchPrediction job. enum PredictionFormat { @@ -180,8 +178,7 @@ message ModelMonitoringObjectiveConfig { TrainingDataset training_dataset = 1; // The config for skew between training data and prediction data. - TrainingPredictionSkewDetectionConfig - training_prediction_skew_detection_config = 2; + TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; // The config for drift of prediction data. PredictionDriftDetectionConfig prediction_drift_detection_config = 3; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto index 9cb69a902ee..cb450ee569a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -50,6 +50,18 @@ message PipelineJob { // The runtime config of a PipelineJob. message RuntimeConfig { + // The type of an input artifact. + message InputArtifact { + oneof kind { + // Artifact resource id from MLMD. Which is the last portion of an + // artifact resource + // name(projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}). + // The artifact must stay within the same project, location and default + // metadatastore as the pipeline. + string artifact_id = 1; + } + } + // Deprecated. Use [RuntimeConfig.parameter_values][google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameter_values] instead. The runtime // parameters of the PipelineJob. The parameters will be passed into // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders at runtime. @@ -81,6 +93,10 @@ message PipelineJob { // will stop scheduling any new tasks when a task has failed. Any scheduled // tasks will continue to completion. PipelineFailurePolicy failure_policy = 4; + + // The runtime artifacts of the PipelineJob. The key will be the input + // artifact name and the value would be one of the InputArtifact. + map input_artifacts = 5; } // Output only. The resource name of the PipelineJob. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto index d66c78435ca..8126d7b8839 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto @@ -201,6 +201,9 @@ message ListTrainingPipelinesRequest { // * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence // // Some examples of using the filter are: // @@ -366,6 +369,9 @@ message ListPipelineJobsRequest { // * `end_time` // * `start_time` string order_by = 6; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 7; } // Response message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs] diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto index b2595c684b1..5ca0eb1a0eb 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto @@ -485,6 +485,19 @@ message StudySpec { bool use_seconds = 5; } + // This contains flag for manually disabling transfer learning for a study. + // The names of prior studies being used for transfer learning (if any) + // are also listed here. + message TransferLearningConfig { + // Flag to to manually prevent vizier from using transfer learning on a + // new study. Otherwise, vizier will automatically determine whether or not + // to use transfer learning. + bool disable_transfer_learning = 1; + + // Output only. Names of previously completed studies + repeated string prior_study_names = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The available search algorithms for the Study. enum Algorithm { // The default algorithm used by Vertex AI for [hyperparameter @@ -573,6 +586,10 @@ message StudySpec { // Describe which measurement selection type will be used MeasurementSelectionType measurement_selection_type = 7; + + // The configuration info/options for transfer learning. Currently supported + // for Vertex AI Vizier service, not HyperParameterTuningJob + TransferLearningConfig transfer_learning_config = 10; } // A message representing a Measurement of a Trial. A Measurement contains diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index 88421210ca6..0d5a2298b24 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -18462,6 +18462,9 @@ export namespace google { /** ImportFeatureValuesResponse invalidRowCount */ invalidRowCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount */ + timestampOutsideRetentionRowsCount?: (number|Long|string|null); } /** Represents an ImportFeatureValuesResponse. */ @@ -18482,6 +18485,9 @@ export namespace google { /** ImportFeatureValuesResponse invalidRowCount. */ public invalidRowCount: (number|Long|string); + /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount. */ + public timestampOutsideRetentionRowsCount: (number|Long|string); + /** * Creates a new ImportFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set @@ -21545,6 +21551,9 @@ export namespace google { /** ImportFeatureValuesOperationMetadata invalidRowCount */ invalidRowCount?: (number|Long|string|null); + + /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount */ + timestampOutsideRetentionRowsCount?: (number|Long|string|null); } /** Represents an ImportFeatureValuesOperationMetadata. */ @@ -21568,6 +21577,9 @@ export namespace google { /** ImportFeatureValuesOperationMetadata invalidRowCount. */ public invalidRowCount: (number|Long|string); + /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount. */ + public timestampOutsideRetentionRowsCount: (number|Long|string); + /** * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. * @param [properties] Properties to set @@ -36301,6 +36313,20 @@ export namespace google { */ public addContextChildren(request: google.cloud.aiplatform.v1.IAddContextChildrenRequest): Promise; + /** + * Calls RemoveContextChildren. + * @param request RemoveContextChildrenRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse + */ + public removeContextChildren(request: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, callback: google.cloud.aiplatform.v1.MetadataService.RemoveContextChildrenCallback): void; + + /** + * Calls RemoveContextChildren. + * @param request RemoveContextChildrenRequest message or plain object + * @returns Promise + */ + public removeContextChildren(request: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest): Promise; + /** * Calls QueryContextLineageSubgraph. * @param request QueryContextLineageSubgraphRequest message or plain object @@ -36612,6 +36638,13 @@ export namespace google { */ type AddContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddContextChildrenResponse) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|removeContextChildren}. + * @param error Error, if any + * @param [response] RemoveContextChildrenResponse + */ + type RemoveContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.RemoveContextChildrenResponse) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryContextLineageSubgraph}. * @param error Error, if any @@ -37639,6 +37672,9 @@ export namespace google { /** ListArtifactsRequest filter */ filter?: (string|null); + + /** ListArtifactsRequest orderBy */ + orderBy?: (string|null); } /** Represents a ListArtifactsRequest. */ @@ -37662,6 +37698,9 @@ export namespace google { /** ListArtifactsRequest filter. */ public filter: string; + /** ListArtifactsRequest orderBy. */ + public orderBy: string; + /** * Creates a new ListArtifactsRequest instance using the specified properties. * @param [properties] Properties to set @@ -38584,6 +38623,9 @@ export namespace google { /** ListContextsRequest filter */ filter?: (string|null); + + /** ListContextsRequest orderBy */ + orderBy?: (string|null); } /** Represents a ListContextsRequest. */ @@ -38607,6 +38649,9 @@ export namespace google { /** ListContextsRequest filter. */ public filter: string; + /** ListContextsRequest orderBy. */ + public orderBy: string; + /** * Creates a new ListContextsRequest instance using the specified properties. * @param [properties] Properties to set @@ -39709,6 +39754,200 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a RemoveContextChildrenRequest. */ + interface IRemoveContextChildrenRequest { + + /** RemoveContextChildrenRequest context */ + context?: (string|null); + + /** RemoveContextChildrenRequest childContexts */ + childContexts?: (string[]|null); + } + + /** Represents a RemoveContextChildrenRequest. */ + class RemoveContextChildrenRequest implements IRemoveContextChildrenRequest { + + /** + * Constructs a new RemoveContextChildrenRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest); + + /** RemoveContextChildrenRequest context. */ + public context: string; + + /** RemoveContextChildrenRequest childContexts. */ + public childContexts: string[]; + + /** + * Creates a new RemoveContextChildrenRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveContextChildrenRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest): google.cloud.aiplatform.v1.RemoveContextChildrenRequest; + + /** + * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. + * @param message RemoveContextChildrenRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. + * @param message RemoveContextChildrenRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveContextChildrenRequest + * @throws {Error} If the payload is not a reader 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.RemoveContextChildrenRequest; + + /** + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveContextChildrenRequest + * @throws {Error} If the payload is not 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.RemoveContextChildrenRequest; + + /** + * Verifies a RemoveContextChildrenRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveContextChildrenRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RemoveContextChildrenRequest; + + /** + * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. + * @param message RemoveContextChildrenRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RemoveContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveContextChildrenRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveContextChildrenRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveContextChildrenResponse. */ + interface IRemoveContextChildrenResponse { + } + + /** Represents a RemoveContextChildrenResponse. */ + class RemoveContextChildrenResponse implements IRemoveContextChildrenResponse { + + /** + * Constructs a new RemoveContextChildrenResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse); + + /** + * Creates a new RemoveContextChildrenResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveContextChildrenResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse): google.cloud.aiplatform.v1.RemoveContextChildrenResponse; + + /** + * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. + * @param message RemoveContextChildrenResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. + * @param message RemoveContextChildrenResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveContextChildrenResponse + * @throws {Error} If the payload is not a reader 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.RemoveContextChildrenResponse; + + /** + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveContextChildrenResponse + * @throws {Error} If the payload is not 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.RemoveContextChildrenResponse; + + /** + * Verifies a RemoveContextChildrenResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveContextChildrenResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RemoveContextChildrenResponse; + + /** + * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. + * @param message RemoveContextChildrenResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RemoveContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveContextChildrenResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveContextChildrenResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a QueryContextLineageSubgraphRequest. */ interface IQueryContextLineageSubgraphRequest { @@ -40026,6 +40265,9 @@ export namespace google { /** ListExecutionsRequest filter */ filter?: (string|null); + + /** ListExecutionsRequest orderBy */ + orderBy?: (string|null); } /** Represents a ListExecutionsRequest. */ @@ -40049,6 +40291,9 @@ export namespace google { /** ListExecutionsRequest filter. */ public filter: string; + /** ListExecutionsRequest orderBy. */ + public orderBy: string; + /** * Creates a new ListExecutionsRequest instance using the specified properties. * @param [properties] Properties to set @@ -90919,6 +91164,9 @@ export namespace google { /** ImportFeatureValuesResponse invalidRowCount */ invalidRowCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount */ + timestampOutsideRetentionRowsCount?: (number|Long|string|null); } /** Represents an ImportFeatureValuesResponse. */ @@ -90939,6 +91187,9 @@ export namespace google { /** ImportFeatureValuesResponse invalidRowCount. */ public invalidRowCount: (number|Long|string); + /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount. */ + public timestampOutsideRetentionRowsCount: (number|Long|string); + /** * Creates a new ImportFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set @@ -94002,6 +94253,9 @@ export namespace google { /** ImportFeatureValuesOperationMetadata invalidRowCount */ invalidRowCount?: (number|Long|string|null); + + /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount */ + timestampOutsideRetentionRowsCount?: (number|Long|string|null); } /** Represents an ImportFeatureValuesOperationMetadata. */ @@ -94025,6 +94279,9 @@ export namespace google { /** ImportFeatureValuesOperationMetadata invalidRowCount. */ public invalidRowCount: (number|Long|string); + /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount. */ + public timestampOutsideRetentionRowsCount: (number|Long|string); + /** * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. * @param [properties] Properties to set @@ -94691,6 +94948,9 @@ export namespace google { /** DeleteFeatureValuesRequest selectEntity */ selectEntity?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity|null); + /** DeleteFeatureValuesRequest selectTimeRangeAndFeature */ + selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + /** DeleteFeatureValuesRequest entityType */ entityType?: (string|null); } @@ -94707,11 +94967,14 @@ export namespace google { /** DeleteFeatureValuesRequest selectEntity. */ public selectEntity?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity|null); + /** DeleteFeatureValuesRequest selectTimeRangeAndFeature. */ + public selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + /** DeleteFeatureValuesRequest entityType. */ public entityType: string; /** DeleteFeatureValuesRequest DeleteOption. */ - public DeleteOption?: "selectEntity"; + public DeleteOption?: ("selectEntity"|"selectTimeRangeAndFeature"); /** * Creates a new DeleteFeatureValuesRequest instance using the specified properties. @@ -94889,6 +95152,115 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of a SelectTimeRangeAndFeature. */ + interface ISelectTimeRangeAndFeature { + + /** SelectTimeRangeAndFeature timeRange */ + timeRange?: (google.type.IInterval|null); + + /** SelectTimeRangeAndFeature featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + + /** SelectTimeRangeAndFeature skipOnlineStorageDelete */ + skipOnlineStorageDelete?: (boolean|null); + } + + /** Represents a SelectTimeRangeAndFeature. */ + class SelectTimeRangeAndFeature implements ISelectTimeRangeAndFeature { + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature); + + /** SelectTimeRangeAndFeature timeRange. */ + public timeRange?: (google.type.IInterval|null); + + /** SelectTimeRangeAndFeature featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + + /** SelectTimeRangeAndFeature skipOnlineStorageDelete. */ + public skipOnlineStorageDelete: boolean; + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectTimeRangeAndFeature instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Verifies a SelectTimeRangeAndFeature message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectTimeRangeAndFeature + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @param message SelectTimeRangeAndFeature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Properties of a DeleteFeatureValuesResponse. */ @@ -95721,6 +96093,9 @@ export namespace google { /** StudySpec measurementSelectionType */ measurementSelectionType?: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null); + + /** StudySpec transferLearningConfig */ + transferLearningConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null); } /** Represents a StudySpec. */ @@ -95759,6 +96134,9 @@ export namespace google { /** StudySpec measurementSelectionType. */ public measurementSelectionType: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType); + /** StudySpec transferLearningConfig. */ + public transferLearningConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null); + /** StudySpec automatedStoppingSpec. */ public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|"convexAutomatedStoppingSpec"); @@ -97386,6 +97764,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TransferLearningConfig. */ + interface ITransferLearningConfig { + + /** TransferLearningConfig disableTransferLearning */ + disableTransferLearning?: (boolean|null); + + /** TransferLearningConfig priorStudyNames */ + priorStudyNames?: (string[]|null); + } + + /** Represents a TransferLearningConfig. */ + class TransferLearningConfig implements ITransferLearningConfig { + + /** + * Constructs a new TransferLearningConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig); + + /** TransferLearningConfig disableTransferLearning. */ + public disableTransferLearning: boolean; + + /** TransferLearningConfig priorStudyNames. */ + public priorStudyNames: string[]; + + /** + * Creates a new TransferLearningConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TransferLearningConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig): google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig; + + /** + * Encodes the specified TransferLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. + * @param message TransferLearningConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TransferLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. + * @param message TransferLearningConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TransferLearningConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TransferLearningConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig; + + /** + * Decodes a TransferLearningConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TransferLearningConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig; + + /** + * Verifies a TransferLearningConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TransferLearningConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TransferLearningConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig; + + /** + * Creates a plain object from a TransferLearningConfig message. Also converts values to other types if specified. + * @param message TransferLearningConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TransferLearningConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TransferLearningConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Algorithm enum. */ enum Algorithm { ALGORITHM_UNSPECIFIED = 0, @@ -107271,6 +107752,20 @@ export namespace google { */ public addContextChildren(request: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest): Promise; + /** + * Calls RemoveContextChildren. + * @param request RemoveContextChildrenRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse + */ + public removeContextChildren(request: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildrenCallback): void; + + /** + * Calls RemoveContextChildren. + * @param request RemoveContextChildrenRequest message or plain object + * @returns Promise + */ + public removeContextChildren(request: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest): Promise; + /** * Calls QueryContextLineageSubgraph. * @param request QueryContextLineageSubgraphRequest message or plain object @@ -107582,6 +108077,13 @@ export namespace google { */ type AddContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddContextChildrenResponse) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|removeContextChildren}. + * @param error Error, if any + * @param [response] RemoveContextChildrenResponse + */ + type RemoveContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryContextLineageSubgraph}. * @param error Error, if any @@ -108609,6 +109111,9 @@ export namespace google { /** ListArtifactsRequest filter */ filter?: (string|null); + + /** ListArtifactsRequest orderBy */ + orderBy?: (string|null); } /** Represents a ListArtifactsRequest. */ @@ -108632,6 +109137,9 @@ export namespace google { /** ListArtifactsRequest filter. */ public filter: string; + /** ListArtifactsRequest orderBy. */ + public orderBy: string; + /** * Creates a new ListArtifactsRequest instance using the specified properties. * @param [properties] Properties to set @@ -109554,6 +110062,9 @@ export namespace google { /** ListContextsRequest filter */ filter?: (string|null); + + /** ListContextsRequest orderBy */ + orderBy?: (string|null); } /** Represents a ListContextsRequest. */ @@ -109577,6 +110088,9 @@ export namespace google { /** ListContextsRequest filter. */ public filter: string; + /** ListContextsRequest orderBy. */ + public orderBy: string; + /** * Creates a new ListContextsRequest instance using the specified properties. * @param [properties] Properties to set @@ -110679,6 +111193,200 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a RemoveContextChildrenRequest. */ + interface IRemoveContextChildrenRequest { + + /** RemoveContextChildrenRequest context */ + context?: (string|null); + + /** RemoveContextChildrenRequest childContexts */ + childContexts?: (string[]|null); + } + + /** Represents a RemoveContextChildrenRequest. */ + class RemoveContextChildrenRequest implements IRemoveContextChildrenRequest { + + /** + * Constructs a new RemoveContextChildrenRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest); + + /** RemoveContextChildrenRequest context. */ + public context: string; + + /** RemoveContextChildrenRequest childContexts. */ + public childContexts: string[]; + + /** + * Creates a new RemoveContextChildrenRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveContextChildrenRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest): google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest; + + /** + * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.verify|verify} messages. + * @param message RemoveContextChildrenRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.verify|verify} messages. + * @param message RemoveContextChildrenRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveContextChildrenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest; + + /** + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveContextChildrenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest; + + /** + * Verifies a RemoveContextChildrenRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveContextChildrenRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest; + + /** + * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. + * @param message RemoveContextChildrenRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveContextChildrenRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveContextChildrenRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveContextChildrenResponse. */ + interface IRemoveContextChildrenResponse { + } + + /** Represents a RemoveContextChildrenResponse. */ + class RemoveContextChildrenResponse implements IRemoveContextChildrenResponse { + + /** + * Constructs a new RemoveContextChildrenResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse); + + /** + * Creates a new RemoveContextChildrenResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveContextChildrenResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse): google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse; + + /** + * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse.verify|verify} messages. + * @param message RemoveContextChildrenResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse.verify|verify} messages. + * @param message RemoveContextChildrenResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveContextChildrenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse; + + /** + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveContextChildrenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse; + + /** + * Verifies a RemoveContextChildrenResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveContextChildrenResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse; + + /** + * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. + * @param message RemoveContextChildrenResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveContextChildrenResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveContextChildrenResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a QueryContextLineageSubgraphRequest. */ interface IQueryContextLineageSubgraphRequest { @@ -110996,6 +111704,9 @@ export namespace google { /** ListExecutionsRequest filter */ filter?: (string|null); + + /** ListExecutionsRequest orderBy */ + orderBy?: (string|null); } /** Represents a ListExecutionsRequest. */ @@ -111019,6 +111730,9 @@ export namespace google { /** ListExecutionsRequest filter. */ public filter: string; + /** ListExecutionsRequest orderBy. */ + public orderBy: string; + /** * Creates a new ListExecutionsRequest instance using the specified properties. * @param [properties] Properties to set @@ -118959,6 +119673,9 @@ export namespace google { /** RuntimeConfig failurePolicy */ failurePolicy?: (google.cloud.aiplatform.v1beta1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1beta1.PipelineFailurePolicy|null); + + /** RuntimeConfig inputArtifacts */ + inputArtifacts?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact }|null); } /** Represents a RuntimeConfig. */ @@ -118982,6 +119699,9 @@ export namespace google { /** RuntimeConfig failurePolicy. */ public failurePolicy: (google.cloud.aiplatform.v1beta1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1beta1.PipelineFailurePolicy); + /** RuntimeConfig inputArtifacts. */ + public inputArtifacts: { [k: string]: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact }; + /** * Creates a new RuntimeConfig instance using the specified properties. * @param [properties] Properties to set @@ -119059,6 +119779,109 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + namespace RuntimeConfig { + + /** Properties of an InputArtifact. */ + interface IInputArtifact { + + /** InputArtifact artifactId */ + artifactId?: (string|null); + } + + /** Represents an InputArtifact. */ + class InputArtifact implements IInputArtifact { + + /** + * Constructs a new InputArtifact. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact); + + /** InputArtifact artifactId. */ + public artifactId?: (string|null); + + /** InputArtifact kind. */ + public kind?: "artifactId"; + + /** + * Creates a new InputArtifact instance using the specified properties. + * @param [properties] Properties to set + * @returns InputArtifact instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact; + + /** + * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @param message InputArtifact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @param message InputArtifact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InputArtifact message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact; + + /** + * Decodes an InputArtifact message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact; + + /** + * Verifies an InputArtifact message. + * @param message Plain 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 InputArtifact message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InputArtifact + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact; + + /** + * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. + * @param message InputArtifact + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InputArtifact to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InputArtifact + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } /** Properties of a PipelineTemplateMetadata. */ @@ -121168,6 +121991,9 @@ export namespace google { /** ListPipelineJobsRequest orderBy */ orderBy?: (string|null); + + /** ListPipelineJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } /** Represents a ListPipelineJobsRequest. */ @@ -121194,6 +122020,9 @@ export namespace google { /** ListPipelineJobsRequest orderBy. */ public orderBy: string; + /** ListPipelineJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + /** * Creates a new ListPipelineJobsRequest instance using the specified properties. * @param [properties] Properties to set @@ -150032,6 +150861,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an Interval. */ + interface IInterval { + + /** Interval startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** Interval endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents an Interval. */ + class Interval implements IInterval { + + /** + * Constructs a new Interval. + * @param [properties] Properties to set + */ + constructor(properties?: google.type.IInterval); + + /** Interval startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Interval endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new Interval instance using the specified properties. + * @param [properties] Properties to set + * @returns Interval instance + */ + public static create(properties?: google.type.IInterval): google.type.Interval; + + /** + * Encodes the specified Interval message. Does not implicitly {@link google.type.Interval.verify|verify} messages. + * @param message Interval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.type.IInterval, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Interval message, length delimited. Does not implicitly {@link google.type.Interval.verify|verify} messages. + * @param message Interval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.type.IInterval, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Interval message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Interval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.Interval; + + /** + * Decodes an Interval message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Interval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.Interval; + + /** + * Verifies an Interval message. + * @param message Plain 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 Interval message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Interval + */ + public static fromObject(object: { [k: string]: any }): google.type.Interval; + + /** + * Creates a plain object from an Interval message. Also converts values to other types if specified. + * @param message Interval + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.type.Interval, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Interval to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Interval + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a Color. */ interface IColor { diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 9a44a1ef3b6..9d61cd3a75d 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -46477,6 +46477,7 @@ * @property {number|Long|null} [importedEntityCount] ImportFeatureValuesResponse importedEntityCount * @property {number|Long|null} [importedFeatureValueCount] ImportFeatureValuesResponse importedFeatureValueCount * @property {number|Long|null} [invalidRowCount] ImportFeatureValuesResponse invalidRowCount + * @property {number|Long|null} [timestampOutsideRetentionRowsCount] ImportFeatureValuesResponse timestampOutsideRetentionRowsCount */ /** @@ -46518,6 +46519,14 @@ */ ImportFeatureValuesResponse.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ImportFeatureValuesResponse timestampOutsideRetentionRowsCount. + * @member {number|Long} timestampOutsideRetentionRowsCount + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * @instance + */ + ImportFeatureValuesResponse.prototype.timestampOutsideRetentionRowsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** * Creates a new ImportFeatureValuesResponse instance using the specified properties. * @function create @@ -46546,6 +46555,8 @@ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.importedEntityCount); if (message.importedFeatureValueCount != null && Object.hasOwnProperty.call(message, "importedFeatureValueCount")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.importedFeatureValueCount); + if (message.timestampOutsideRetentionRowsCount != null && Object.hasOwnProperty.call(message, "timestampOutsideRetentionRowsCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.timestampOutsideRetentionRowsCount); if (message.invalidRowCount != null && Object.hasOwnProperty.call(message, "invalidRowCount")) writer.uint32(/* id 6, wireType 0 =*/48).int64(message.invalidRowCount); return writer; @@ -46594,6 +46605,10 @@ message.invalidRowCount = reader.int64(); break; } + case 4: { + message.timestampOutsideRetentionRowsCount = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -46638,6 +46653,9 @@ if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) if (!$util.isInteger(message.invalidRowCount) && !(message.invalidRowCount && $util.isInteger(message.invalidRowCount.low) && $util.isInteger(message.invalidRowCount.high))) return "invalidRowCount: integer|Long expected"; + if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) + if (!$util.isInteger(message.timestampOutsideRetentionRowsCount) && !(message.timestampOutsideRetentionRowsCount && $util.isInteger(message.timestampOutsideRetentionRowsCount.low) && $util.isInteger(message.timestampOutsideRetentionRowsCount.high))) + return "timestampOutsideRetentionRowsCount: integer|Long expected"; return null; }; @@ -46680,6 +46698,15 @@ message.invalidRowCount = object.invalidRowCount; else if (typeof object.invalidRowCount === "object") message.invalidRowCount = new $util.LongBits(object.invalidRowCount.low >>> 0, object.invalidRowCount.high >>> 0).toNumber(); + if (object.timestampOutsideRetentionRowsCount != null) + if ($util.Long) + (message.timestampOutsideRetentionRowsCount = $util.Long.fromValue(object.timestampOutsideRetentionRowsCount)).unsigned = false; + else if (typeof object.timestampOutsideRetentionRowsCount === "string") + message.timestampOutsideRetentionRowsCount = parseInt(object.timestampOutsideRetentionRowsCount, 10); + else if (typeof object.timestampOutsideRetentionRowsCount === "number") + message.timestampOutsideRetentionRowsCount = object.timestampOutsideRetentionRowsCount; + else if (typeof object.timestampOutsideRetentionRowsCount === "object") + message.timestampOutsideRetentionRowsCount = new $util.LongBits(object.timestampOutsideRetentionRowsCount.low >>> 0, object.timestampOutsideRetentionRowsCount.high >>> 0).toNumber(); return message; }; @@ -46707,6 +46734,11 @@ object.importedFeatureValueCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.importedFeatureValueCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestampOutsideRetentionRowsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestampOutsideRetentionRowsCount = options.longs === String ? "0" : 0; if ($util.Long) { var long = new $util.Long(0, 0, false); object.invalidRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; @@ -46723,6 +46755,11 @@ object.importedFeatureValueCount = options.longs === String ? String(message.importedFeatureValueCount) : message.importedFeatureValueCount; else object.importedFeatureValueCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedFeatureValueCount) : options.longs === Number ? new $util.LongBits(message.importedFeatureValueCount.low >>> 0, message.importedFeatureValueCount.high >>> 0).toNumber() : message.importedFeatureValueCount; + if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) + if (typeof message.timestampOutsideRetentionRowsCount === "number") + object.timestampOutsideRetentionRowsCount = options.longs === String ? String(message.timestampOutsideRetentionRowsCount) : message.timestampOutsideRetentionRowsCount; + else + object.timestampOutsideRetentionRowsCount = options.longs === String ? $util.Long.prototype.toString.call(message.timestampOutsideRetentionRowsCount) : options.longs === Number ? new $util.LongBits(message.timestampOutsideRetentionRowsCount.low >>> 0, message.timestampOutsideRetentionRowsCount.high >>> 0).toNumber() : message.timestampOutsideRetentionRowsCount; if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) if (typeof message.invalidRowCount === "number") object.invalidRowCount = options.longs === String ? String(message.invalidRowCount) : message.invalidRowCount; @@ -53787,6 +53824,7 @@ * @property {number|Long|null} [importedEntityCount] ImportFeatureValuesOperationMetadata importedEntityCount * @property {number|Long|null} [importedFeatureValueCount] ImportFeatureValuesOperationMetadata importedFeatureValueCount * @property {number|Long|null} [invalidRowCount] ImportFeatureValuesOperationMetadata invalidRowCount + * @property {number|Long|null} [timestampOutsideRetentionRowsCount] ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount */ /** @@ -53836,6 +53874,14 @@ */ ImportFeatureValuesOperationMetadata.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount. + * @member {number|Long} timestampOutsideRetentionRowsCount + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @instance + */ + ImportFeatureValuesOperationMetadata.prototype.timestampOutsideRetentionRowsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. * @function create @@ -53868,6 +53914,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.importedFeatureValueCount); if (message.invalidRowCount != null && Object.hasOwnProperty.call(message, "invalidRowCount")) writer.uint32(/* id 6, wireType 0 =*/48).int64(message.invalidRowCount); + if (message.timestampOutsideRetentionRowsCount != null && Object.hasOwnProperty.call(message, "timestampOutsideRetentionRowsCount")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.timestampOutsideRetentionRowsCount); return writer; }; @@ -53918,6 +53966,10 @@ message.invalidRowCount = reader.int64(); break; } + case 7: { + message.timestampOutsideRetentionRowsCount = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -53967,6 +54019,9 @@ if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) if (!$util.isInteger(message.invalidRowCount) && !(message.invalidRowCount && $util.isInteger(message.invalidRowCount.low) && $util.isInteger(message.invalidRowCount.high))) return "invalidRowCount: integer|Long expected"; + if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) + if (!$util.isInteger(message.timestampOutsideRetentionRowsCount) && !(message.timestampOutsideRetentionRowsCount && $util.isInteger(message.timestampOutsideRetentionRowsCount.low) && $util.isInteger(message.timestampOutsideRetentionRowsCount.high))) + return "timestampOutsideRetentionRowsCount: integer|Long expected"; return null; }; @@ -54014,6 +54069,15 @@ message.invalidRowCount = object.invalidRowCount; else if (typeof object.invalidRowCount === "object") message.invalidRowCount = new $util.LongBits(object.invalidRowCount.low >>> 0, object.invalidRowCount.high >>> 0).toNumber(); + if (object.timestampOutsideRetentionRowsCount != null) + if ($util.Long) + (message.timestampOutsideRetentionRowsCount = $util.Long.fromValue(object.timestampOutsideRetentionRowsCount)).unsigned = false; + else if (typeof object.timestampOutsideRetentionRowsCount === "string") + message.timestampOutsideRetentionRowsCount = parseInt(object.timestampOutsideRetentionRowsCount, 10); + else if (typeof object.timestampOutsideRetentionRowsCount === "number") + message.timestampOutsideRetentionRowsCount = object.timestampOutsideRetentionRowsCount; + else if (typeof object.timestampOutsideRetentionRowsCount === "object") + message.timestampOutsideRetentionRowsCount = new $util.LongBits(object.timestampOutsideRetentionRowsCount.low >>> 0, object.timestampOutsideRetentionRowsCount.high >>> 0).toNumber(); return message; }; @@ -54047,6 +54111,11 @@ object.invalidRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.invalidRowCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestampOutsideRetentionRowsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestampOutsideRetentionRowsCount = options.longs === String ? "0" : 0; } if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); @@ -54065,6 +54134,11 @@ object.invalidRowCount = options.longs === String ? String(message.invalidRowCount) : message.invalidRowCount; else object.invalidRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRowCount) : options.longs === Number ? new $util.LongBits(message.invalidRowCount.low >>> 0, message.invalidRowCount.high >>> 0).toNumber() : message.invalidRowCount; + if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) + if (typeof message.timestampOutsideRetentionRowsCount === "number") + object.timestampOutsideRetentionRowsCount = options.longs === String ? String(message.timestampOutsideRetentionRowsCount) : message.timestampOutsideRetentionRowsCount; + else + object.timestampOutsideRetentionRowsCount = options.longs === String ? $util.Long.prototype.toString.call(message.timestampOutsideRetentionRowsCount) : options.longs === Number ? new $util.LongBits(message.timestampOutsideRetentionRowsCount.low >>> 0, message.timestampOutsideRetentionRowsCount.high >>> 0).toNumber() : message.timestampOutsideRetentionRowsCount; return object; }; @@ -89250,6 +89324,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|removeContextChildren}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef RemoveContextChildrenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} [response] RemoveContextChildrenResponse + */ + + /** + * Calls RemoveContextChildren. + * @function removeContextChildren + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.RemoveContextChildrenCallback} callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.removeContextChildren = function removeContextChildren(request, callback) { + return this.rpcCall(removeContextChildren, $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest, $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse, request, callback); + }, "name", { value: "RemoveContextChildren" }); + + /** + * Calls RemoveContextChildren. + * @function removeContextChildren + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryContextLineageSubgraph}. * @memberof google.cloud.aiplatform.v1.MetadataService @@ -91749,6 +91856,7 @@ * @property {number|null} [pageSize] ListArtifactsRequest pageSize * @property {string|null} [pageToken] ListArtifactsRequest pageToken * @property {string|null} [filter] ListArtifactsRequest filter + * @property {string|null} [orderBy] ListArtifactsRequest orderBy */ /** @@ -91798,6 +91906,14 @@ */ ListArtifactsRequest.prototype.filter = ""; + /** + * ListArtifactsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @instance + */ + ListArtifactsRequest.prototype.orderBy = ""; + /** * Creates a new ListArtifactsRequest instance using the specified properties. * @function create @@ -91830,6 +91946,8 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; @@ -91880,6 +91998,10 @@ message.filter = reader.string(); break; } + case 5: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -91927,6 +92049,9 @@ if (message.filter != null && message.hasOwnProperty("filter")) if (!$util.isString(message.filter)) return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; @@ -91950,6 +92075,8 @@ message.pageToken = String(object.pageToken); if (object.filter != null) message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; @@ -91971,6 +92098,7 @@ object.pageSize = 0; object.pageToken = ""; object.filter = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -91980,6 +92108,8 @@ object.pageToken = message.pageToken; if (message.filter != null && message.hasOwnProperty("filter")) object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; @@ -93930,6 +94060,7 @@ * @property {number|null} [pageSize] ListContextsRequest pageSize * @property {string|null} [pageToken] ListContextsRequest pageToken * @property {string|null} [filter] ListContextsRequest filter + * @property {string|null} [orderBy] ListContextsRequest orderBy */ /** @@ -93979,6 +94110,14 @@ */ ListContextsRequest.prototype.filter = ""; + /** + * ListContextsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @instance + */ + ListContextsRequest.prototype.orderBy = ""; + /** * Creates a new ListContextsRequest instance using the specified properties. * @function create @@ -94011,6 +94150,8 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; @@ -94061,6 +94202,10 @@ message.filter = reader.string(); break; } + case 5: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -94108,6 +94253,9 @@ if (message.filter != null && message.hasOwnProperty("filter")) if (!$util.isString(message.filter)) return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; @@ -94131,6 +94279,8 @@ message.pageToken = String(object.pageToken); if (object.filter != null) message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; @@ -94152,6 +94302,7 @@ object.pageSize = 0; object.pageToken = ""; object.filter = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -94161,6 +94312,8 @@ object.pageToken = message.pageToken; if (message.filter != null && message.hasOwnProperty("filter")) object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; @@ -96542,6 +96695,424 @@ return AddContextChildrenResponse; })(); + v1.RemoveContextChildrenRequest = (function() { + + /** + * Properties of a RemoveContextChildrenRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IRemoveContextChildrenRequest + * @property {string|null} [context] RemoveContextChildrenRequest context + * @property {Array.|null} [childContexts] RemoveContextChildrenRequest childContexts + */ + + /** + * Constructs a new RemoveContextChildrenRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a RemoveContextChildrenRequest. + * @implements IRemoveContextChildrenRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest=} [properties] Properties to set + */ + function RemoveContextChildrenRequest(properties) { + this.childContexts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RemoveContextChildrenRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @instance + */ + RemoveContextChildrenRequest.prototype.context = ""; + + /** + * RemoveContextChildrenRequest childContexts. + * @member {Array.} childContexts + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @instance + */ + RemoveContextChildrenRequest.prototype.childContexts = $util.emptyArray; + + /** + * Creates a new RemoveContextChildrenRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @static + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest instance + */ + RemoveContextChildrenRequest.create = function create(properties) { + return new RemoveContextChildrenRequest(properties); + }; + + /** + * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @static + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveContextChildrenRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.childContexts != null && message.childContexts.length) + for (var i = 0; i < message.childContexts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); + return writer; + }; + + /** + * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @static + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @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.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveContextChildrenRequest.decode = function decode(reader, 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.RemoveContextChildrenRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.context = reader.string(); + break; + } + case 2: { + if (!(message.childContexts && message.childContexts.length)) + message.childContexts = []; + message.childContexts.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RemoveContextChildrenRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RemoveContextChildrenRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.childContexts != null && message.hasOwnProperty("childContexts")) { + if (!Array.isArray(message.childContexts)) + return "childContexts: array expected"; + for (var i = 0; i < message.childContexts.length; ++i) + if (!$util.isString(message.childContexts[i])) + return "childContexts: string[] expected"; + } + return null; + }; + + /** + * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + */ + RemoveContextChildrenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.childContexts) { + if (!Array.isArray(object.childContexts)) + throw TypeError(".google.cloud.aiplatform.v1.RemoveContextChildrenRequest.childContexts: array expected"); + message.childContexts = []; + for (var i = 0; i < object.childContexts.length; ++i) + message.childContexts[i] = String(object.childContexts[i]); + } + return message; + }; + + /** + * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @static + * @param {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} message RemoveContextChildrenRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RemoveContextChildrenRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.childContexts = []; + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.childContexts && message.childContexts.length) { + object.childContexts = []; + for (var j = 0; j < message.childContexts.length; ++j) + object.childContexts[j] = message.childContexts[j]; + } + return object; + }; + + /** + * Converts this RemoveContextChildrenRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @instance + * @returns {Object.} JSON object + */ + RemoveContextChildrenRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RemoveContextChildrenRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RemoveContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveContextChildrenRequest"; + }; + + return RemoveContextChildrenRequest; + })(); + + v1.RemoveContextChildrenResponse = (function() { + + /** + * Properties of a RemoveContextChildrenResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IRemoveContextChildrenResponse + */ + + /** + * Constructs a new RemoveContextChildrenResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a RemoveContextChildrenResponse. + * @implements IRemoveContextChildrenResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse=} [properties] Properties to set + */ + function RemoveContextChildrenResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new RemoveContextChildrenResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @static + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse instance + */ + RemoveContextChildrenResponse.create = function create(properties) { + return new RemoveContextChildrenResponse(properties); + }; + + /** + * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @static + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveContextChildrenResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @static + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @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.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveContextChildrenResponse.decode = function decode(reader, 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.RemoveContextChildrenResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RemoveContextChildrenResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RemoveContextChildrenResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + */ + RemoveContextChildrenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse) + return object; + return new $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse(); + }; + + /** + * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @static + * @param {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} message RemoveContextChildrenResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RemoveContextChildrenResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this RemoveContextChildrenResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @instance + * @returns {Object.} JSON object + */ + RemoveContextChildrenResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RemoveContextChildrenResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RemoveContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveContextChildrenResponse"; + }; + + return RemoveContextChildrenResponse; + })(); + v1.QueryContextLineageSubgraphRequest = (function() { /** @@ -97213,6 +97784,7 @@ * @property {number|null} [pageSize] ListExecutionsRequest pageSize * @property {string|null} [pageToken] ListExecutionsRequest pageToken * @property {string|null} [filter] ListExecutionsRequest filter + * @property {string|null} [orderBy] ListExecutionsRequest orderBy */ /** @@ -97262,6 +97834,14 @@ */ ListExecutionsRequest.prototype.filter = ""; + /** + * ListExecutionsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.orderBy = ""; + /** * Creates a new ListExecutionsRequest instance using the specified properties. * @function create @@ -97294,6 +97874,8 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; @@ -97344,6 +97926,10 @@ message.filter = reader.string(); break; } + case 5: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -97391,6 +97977,9 @@ if (message.filter != null && message.hasOwnProperty("filter")) if (!$util.isString(message.filter)) return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; @@ -97414,6 +98003,8 @@ message.pageToken = String(object.pageToken); if (object.filter != null) message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; @@ -97435,6 +98026,7 @@ object.pageSize = 0; object.pageToken = ""; object.filter = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -97444,6 +98036,8 @@ object.pageToken = message.pageToken; if (message.filter != null && message.hasOwnProperty("filter")) object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; @@ -220612,6 +221206,7 @@ * @property {number|Long|null} [importedEntityCount] ImportFeatureValuesResponse importedEntityCount * @property {number|Long|null} [importedFeatureValueCount] ImportFeatureValuesResponse importedFeatureValueCount * @property {number|Long|null} [invalidRowCount] ImportFeatureValuesResponse invalidRowCount + * @property {number|Long|null} [timestampOutsideRetentionRowsCount] ImportFeatureValuesResponse timestampOutsideRetentionRowsCount */ /** @@ -220653,6 +221248,14 @@ */ ImportFeatureValuesResponse.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ImportFeatureValuesResponse timestampOutsideRetentionRowsCount. + * @member {number|Long} timestampOutsideRetentionRowsCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @instance + */ + ImportFeatureValuesResponse.prototype.timestampOutsideRetentionRowsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** * Creates a new ImportFeatureValuesResponse instance using the specified properties. * @function create @@ -220681,6 +221284,8 @@ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.importedEntityCount); if (message.importedFeatureValueCount != null && Object.hasOwnProperty.call(message, "importedFeatureValueCount")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.importedFeatureValueCount); + if (message.timestampOutsideRetentionRowsCount != null && Object.hasOwnProperty.call(message, "timestampOutsideRetentionRowsCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.timestampOutsideRetentionRowsCount); if (message.invalidRowCount != null && Object.hasOwnProperty.call(message, "invalidRowCount")) writer.uint32(/* id 6, wireType 0 =*/48).int64(message.invalidRowCount); return writer; @@ -220729,6 +221334,10 @@ message.invalidRowCount = reader.int64(); break; } + case 4: { + message.timestampOutsideRetentionRowsCount = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -220773,6 +221382,9 @@ if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) if (!$util.isInteger(message.invalidRowCount) && !(message.invalidRowCount && $util.isInteger(message.invalidRowCount.low) && $util.isInteger(message.invalidRowCount.high))) return "invalidRowCount: integer|Long expected"; + if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) + if (!$util.isInteger(message.timestampOutsideRetentionRowsCount) && !(message.timestampOutsideRetentionRowsCount && $util.isInteger(message.timestampOutsideRetentionRowsCount.low) && $util.isInteger(message.timestampOutsideRetentionRowsCount.high))) + return "timestampOutsideRetentionRowsCount: integer|Long expected"; return null; }; @@ -220815,6 +221427,15 @@ message.invalidRowCount = object.invalidRowCount; else if (typeof object.invalidRowCount === "object") message.invalidRowCount = new $util.LongBits(object.invalidRowCount.low >>> 0, object.invalidRowCount.high >>> 0).toNumber(); + if (object.timestampOutsideRetentionRowsCount != null) + if ($util.Long) + (message.timestampOutsideRetentionRowsCount = $util.Long.fromValue(object.timestampOutsideRetentionRowsCount)).unsigned = false; + else if (typeof object.timestampOutsideRetentionRowsCount === "string") + message.timestampOutsideRetentionRowsCount = parseInt(object.timestampOutsideRetentionRowsCount, 10); + else if (typeof object.timestampOutsideRetentionRowsCount === "number") + message.timestampOutsideRetentionRowsCount = object.timestampOutsideRetentionRowsCount; + else if (typeof object.timestampOutsideRetentionRowsCount === "object") + message.timestampOutsideRetentionRowsCount = new $util.LongBits(object.timestampOutsideRetentionRowsCount.low >>> 0, object.timestampOutsideRetentionRowsCount.high >>> 0).toNumber(); return message; }; @@ -220842,6 +221463,11 @@ object.importedFeatureValueCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.importedFeatureValueCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestampOutsideRetentionRowsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestampOutsideRetentionRowsCount = options.longs === String ? "0" : 0; if ($util.Long) { var long = new $util.Long(0, 0, false); object.invalidRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; @@ -220858,6 +221484,11 @@ object.importedFeatureValueCount = options.longs === String ? String(message.importedFeatureValueCount) : message.importedFeatureValueCount; else object.importedFeatureValueCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedFeatureValueCount) : options.longs === Number ? new $util.LongBits(message.importedFeatureValueCount.low >>> 0, message.importedFeatureValueCount.high >>> 0).toNumber() : message.importedFeatureValueCount; + if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) + if (typeof message.timestampOutsideRetentionRowsCount === "number") + object.timestampOutsideRetentionRowsCount = options.longs === String ? String(message.timestampOutsideRetentionRowsCount) : message.timestampOutsideRetentionRowsCount; + else + object.timestampOutsideRetentionRowsCount = options.longs === String ? $util.Long.prototype.toString.call(message.timestampOutsideRetentionRowsCount) : options.longs === Number ? new $util.LongBits(message.timestampOutsideRetentionRowsCount.low >>> 0, message.timestampOutsideRetentionRowsCount.high >>> 0).toNumber() : message.timestampOutsideRetentionRowsCount; if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) if (typeof message.invalidRowCount === "number") object.invalidRowCount = options.longs === String ? String(message.invalidRowCount) : message.invalidRowCount; @@ -227922,6 +228553,7 @@ * @property {number|Long|null} [importedEntityCount] ImportFeatureValuesOperationMetadata importedEntityCount * @property {number|Long|null} [importedFeatureValueCount] ImportFeatureValuesOperationMetadata importedFeatureValueCount * @property {number|Long|null} [invalidRowCount] ImportFeatureValuesOperationMetadata invalidRowCount + * @property {number|Long|null} [timestampOutsideRetentionRowsCount] ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount */ /** @@ -227971,6 +228603,14 @@ */ ImportFeatureValuesOperationMetadata.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount. + * @member {number|Long} timestampOutsideRetentionRowsCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @instance + */ + ImportFeatureValuesOperationMetadata.prototype.timestampOutsideRetentionRowsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. * @function create @@ -228003,6 +228643,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.importedFeatureValueCount); if (message.invalidRowCount != null && Object.hasOwnProperty.call(message, "invalidRowCount")) writer.uint32(/* id 6, wireType 0 =*/48).int64(message.invalidRowCount); + if (message.timestampOutsideRetentionRowsCount != null && Object.hasOwnProperty.call(message, "timestampOutsideRetentionRowsCount")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.timestampOutsideRetentionRowsCount); return writer; }; @@ -228053,6 +228695,10 @@ message.invalidRowCount = reader.int64(); break; } + case 7: { + message.timestampOutsideRetentionRowsCount = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -228102,6 +228748,9 @@ if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) if (!$util.isInteger(message.invalidRowCount) && !(message.invalidRowCount && $util.isInteger(message.invalidRowCount.low) && $util.isInteger(message.invalidRowCount.high))) return "invalidRowCount: integer|Long expected"; + if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) + if (!$util.isInteger(message.timestampOutsideRetentionRowsCount) && !(message.timestampOutsideRetentionRowsCount && $util.isInteger(message.timestampOutsideRetentionRowsCount.low) && $util.isInteger(message.timestampOutsideRetentionRowsCount.high))) + return "timestampOutsideRetentionRowsCount: integer|Long expected"; return null; }; @@ -228149,6 +228798,15 @@ message.invalidRowCount = object.invalidRowCount; else if (typeof object.invalidRowCount === "object") message.invalidRowCount = new $util.LongBits(object.invalidRowCount.low >>> 0, object.invalidRowCount.high >>> 0).toNumber(); + if (object.timestampOutsideRetentionRowsCount != null) + if ($util.Long) + (message.timestampOutsideRetentionRowsCount = $util.Long.fromValue(object.timestampOutsideRetentionRowsCount)).unsigned = false; + else if (typeof object.timestampOutsideRetentionRowsCount === "string") + message.timestampOutsideRetentionRowsCount = parseInt(object.timestampOutsideRetentionRowsCount, 10); + else if (typeof object.timestampOutsideRetentionRowsCount === "number") + message.timestampOutsideRetentionRowsCount = object.timestampOutsideRetentionRowsCount; + else if (typeof object.timestampOutsideRetentionRowsCount === "object") + message.timestampOutsideRetentionRowsCount = new $util.LongBits(object.timestampOutsideRetentionRowsCount.low >>> 0, object.timestampOutsideRetentionRowsCount.high >>> 0).toNumber(); return message; }; @@ -228182,6 +228840,11 @@ object.invalidRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.invalidRowCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestampOutsideRetentionRowsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestampOutsideRetentionRowsCount = options.longs === String ? "0" : 0; } if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); @@ -228200,6 +228863,11 @@ object.invalidRowCount = options.longs === String ? String(message.invalidRowCount) : message.invalidRowCount; else object.invalidRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRowCount) : options.longs === Number ? new $util.LongBits(message.invalidRowCount.low >>> 0, message.invalidRowCount.high >>> 0).toNumber() : message.invalidRowCount; + if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) + if (typeof message.timestampOutsideRetentionRowsCount === "number") + object.timestampOutsideRetentionRowsCount = options.longs === String ? String(message.timestampOutsideRetentionRowsCount) : message.timestampOutsideRetentionRowsCount; + else + object.timestampOutsideRetentionRowsCount = options.longs === String ? $util.Long.prototype.toString.call(message.timestampOutsideRetentionRowsCount) : options.longs === Number ? new $util.LongBits(message.timestampOutsideRetentionRowsCount.low >>> 0, message.timestampOutsideRetentionRowsCount.high >>> 0).toNumber() : message.timestampOutsideRetentionRowsCount; return object; }; @@ -229487,6 +230155,7 @@ * @memberof google.cloud.aiplatform.v1beta1 * @interface IDeleteFeatureValuesRequest * @property {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity|null} [selectEntity] DeleteFeatureValuesRequest selectEntity + * @property {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null} [selectTimeRangeAndFeature] DeleteFeatureValuesRequest selectTimeRangeAndFeature * @property {string|null} [entityType] DeleteFeatureValuesRequest entityType */ @@ -229513,6 +230182,14 @@ */ DeleteFeatureValuesRequest.prototype.selectEntity = null; + /** + * DeleteFeatureValuesRequest selectTimeRangeAndFeature. + * @member {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null|undefined} selectTimeRangeAndFeature + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest + * @instance + */ + DeleteFeatureValuesRequest.prototype.selectTimeRangeAndFeature = null; + /** * DeleteFeatureValuesRequest entityType. * @member {string} entityType @@ -229526,12 +230203,12 @@ /** * DeleteFeatureValuesRequest DeleteOption. - * @member {"selectEntity"|undefined} DeleteOption + * @member {"selectEntity"|"selectTimeRangeAndFeature"|undefined} DeleteOption * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest * @instance */ Object.defineProperty(DeleteFeatureValuesRequest.prototype, "DeleteOption", { - get: $util.oneOfGetter($oneOfFields = ["selectEntity"]), + get: $util.oneOfGetter($oneOfFields = ["selectEntity", "selectTimeRangeAndFeature"]), set: $util.oneOfSetter($oneOfFields) }); @@ -229563,6 +230240,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); if (message.selectEntity != null && Object.hasOwnProperty.call(message, "selectEntity")) $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.encode(message.selectEntity, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.selectTimeRangeAndFeature != null && Object.hasOwnProperty.call(message, "selectTimeRangeAndFeature")) + $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.encode(message.selectTimeRangeAndFeature, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -229601,6 +230280,10 @@ message.selectEntity = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.decode(reader, reader.uint32()); break; } + case 3: { + message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.decode(reader, reader.uint32()); + break; + } case 1: { message.entityType = reader.string(); break; @@ -229649,6 +230332,16 @@ return "selectEntity." + error; } } + if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { + if (properties.DeleteOption === 1) + return "DeleteOption: multiple values"; + properties.DeleteOption = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify(message.selectTimeRangeAndFeature); + if (error) + return "selectTimeRangeAndFeature." + error; + } + } if (message.entityType != null && message.hasOwnProperty("entityType")) if (!$util.isString(message.entityType)) return "entityType: string expected"; @@ -229672,6 +230365,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.selectEntity: object expected"); message.selectEntity = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.fromObject(object.selectEntity); } + if (object.selectTimeRangeAndFeature != null) { + if (typeof object.selectTimeRangeAndFeature !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.selectTimeRangeAndFeature: object expected"); + message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.fromObject(object.selectTimeRangeAndFeature); + } if (object.entityType != null) message.entityType = String(object.entityType); return message; @@ -229699,6 +230397,11 @@ if (options.oneofs) object.DeleteOption = "selectEntity"; } + if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { + object.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.toObject(message.selectTimeRangeAndFeature, options); + if (options.oneofs) + object.DeleteOption = "selectTimeRangeAndFeature"; + } return object; }; @@ -229936,6 +230639,266 @@ return SelectEntity; })(); + DeleteFeatureValuesRequest.SelectTimeRangeAndFeature = (function() { + + /** + * Properties of a SelectTimeRangeAndFeature. + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest + * @interface ISelectTimeRangeAndFeature + * @property {google.type.IInterval|null} [timeRange] SelectTimeRangeAndFeature timeRange + * @property {google.cloud.aiplatform.v1beta1.IFeatureSelector|null} [featureSelector] SelectTimeRangeAndFeature featureSelector + * @property {boolean|null} [skipOnlineStorageDelete] SelectTimeRangeAndFeature skipOnlineStorageDelete + */ + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest + * @classdesc Represents a SelectTimeRangeAndFeature. + * @implements ISelectTimeRangeAndFeature + * @constructor + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature=} [properties] Properties to set + */ + function SelectTimeRangeAndFeature(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SelectTimeRangeAndFeature timeRange. + * @member {google.type.IInterval|null|undefined} timeRange + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.timeRange = null; + + /** + * SelectTimeRangeAndFeature featureSelector. + * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.featureSelector = null; + + /** + * SelectTimeRangeAndFeature skipOnlineStorageDelete. + * @member {boolean} skipOnlineStorageDelete + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.skipOnlineStorageDelete = false; + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature instance + */ + SelectTimeRangeAndFeature.create = function create(properties) { + return new SelectTimeRangeAndFeature(properties); + }; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectTimeRangeAndFeature.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange")) + $root.google.type.Interval.encode(message.timeRange, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) + $root.google.cloud.aiplatform.v1beta1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.skipOnlineStorageDelete != null && Object.hasOwnProperty.call(message, "skipOnlineStorageDelete")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.skipOnlineStorageDelete); + return writer; + }; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectTimeRangeAndFeature.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectTimeRangeAndFeature.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.timeRange = $root.google.type.Interval.decode(reader, reader.uint32()); + break; + } + case 2: { + message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.decode(reader, reader.uint32()); + break; + } + case 3: { + message.skipOnlineStorageDelete = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectTimeRangeAndFeature.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SelectTimeRangeAndFeature message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SelectTimeRangeAndFeature.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timeRange != null && message.hasOwnProperty("timeRange")) { + var error = $root.google.type.Interval.verify(message.timeRange); + if (error) + return "timeRange." + error; + } + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.verify(message.featureSelector); + if (error) + return "featureSelector." + error; + } + if (message.skipOnlineStorageDelete != null && message.hasOwnProperty("skipOnlineStorageDelete")) + if (typeof message.skipOnlineStorageDelete !== "boolean") + return "skipOnlineStorageDelete: boolean expected"; + return null; + }; + + /** + * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + */ + SelectTimeRangeAndFeature.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature(); + if (object.timeRange != null) { + if (typeof object.timeRange !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.timeRange: object expected"); + message.timeRange = $root.google.type.Interval.fromObject(object.timeRange); + } + if (object.featureSelector != null) { + if (typeof object.featureSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.featureSelector: object expected"); + message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.fromObject(object.featureSelector); + } + if (object.skipOnlineStorageDelete != null) + message.skipOnlineStorageDelete = Boolean(object.skipOnlineStorageDelete); + return message; + }; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} message SelectTimeRangeAndFeature + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SelectTimeRangeAndFeature.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.timeRange = null; + object.featureSelector = null; + object.skipOnlineStorageDelete = false; + } + if (message.timeRange != null && message.hasOwnProperty("timeRange")) + object.timeRange = $root.google.type.Interval.toObject(message.timeRange, options); + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) + object.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.toObject(message.featureSelector, options); + if (message.skipOnlineStorageDelete != null && message.hasOwnProperty("skipOnlineStorageDelete")) + object.skipOnlineStorageDelete = message.skipOnlineStorageDelete; + return object; + }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @instance + * @returns {Object.} JSON object + */ + SelectTimeRangeAndFeature.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SelectTimeRangeAndFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature"; + }; + + return SelectTimeRangeAndFeature; + })(); + return DeleteFeatureValuesRequest; })(); @@ -232294,6 +233257,7 @@ * @property {google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|null} [algorithm] StudySpec algorithm * @property {google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|null} [observationNoise] StudySpec observationNoise * @property {google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null} [measurementSelectionType] StudySpec measurementSelectionType + * @property {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null} [transferLearningConfig] StudySpec transferLearningConfig */ /** @@ -232385,6 +233349,14 @@ */ StudySpec.prototype.measurementSelectionType = 0; + /** + * StudySpec transferLearningConfig. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null|undefined} transferLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + StudySpec.prototype.transferLearningConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -232443,6 +233415,8 @@ $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.encode(message.convexStopConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.convexAutomatedStoppingSpec != null && Object.hasOwnProperty.call(message, "convexAutomatedStoppingSpec")) $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.encode(message.convexAutomatedStoppingSpec, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.transferLearningConfig != null && Object.hasOwnProperty.call(message, "transferLearningConfig")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.encode(message.transferLearningConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; @@ -232517,6 +233491,10 @@ message.measurementSelectionType = reader.int32(); break; } + case 10: { + message.transferLearningConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -232636,6 +233614,11 @@ case 2: break; } + if (message.transferLearningConfig != null && message.hasOwnProperty("transferLearningConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify(message.transferLearningConfig); + if (error) + return "transferLearningConfig." + error; + } return null; }; @@ -232733,6 +233716,11 @@ message.measurementSelectionType = 2; break; } + if (object.transferLearningConfig != null) { + if (typeof object.transferLearningConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.transferLearningConfig: object expected"); + message.transferLearningConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.fromObject(object.transferLearningConfig); + } return message; }; @@ -232757,6 +233745,7 @@ object.algorithm = options.enums === String ? "ALGORITHM_UNSPECIFIED" : 0; object.observationNoise = options.enums === String ? "OBSERVATION_NOISE_UNSPECIFIED" : 0; object.measurementSelectionType = options.enums === String ? "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED" : 0; + object.transferLearningConfig = null; } if (message.metrics && message.metrics.length) { object.metrics = []; @@ -232794,6 +233783,8 @@ if (options.oneofs) object.automatedStoppingSpec = "convexAutomatedStoppingSpec"; } + if (message.transferLearningConfig != null && message.hasOwnProperty("transferLearningConfig")) + object.transferLearningConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.toObject(message.transferLearningConfig, options); return object; }; @@ -236747,6 +237738,249 @@ return ConvexStopConfig; })(); + StudySpec.TransferLearningConfig = (function() { + + /** + * Properties of a TransferLearningConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface ITransferLearningConfig + * @property {boolean|null} [disableTransferLearning] TransferLearningConfig disableTransferLearning + * @property {Array.|null} [priorStudyNames] TransferLearningConfig priorStudyNames + */ + + /** + * Constructs a new TransferLearningConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a TransferLearningConfig. + * @implements ITransferLearningConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig=} [properties] Properties to set + */ + function TransferLearningConfig(properties) { + this.priorStudyNames = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TransferLearningConfig disableTransferLearning. + * @member {boolean} disableTransferLearning + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @instance + */ + TransferLearningConfig.prototype.disableTransferLearning = false; + + /** + * TransferLearningConfig priorStudyNames. + * @member {Array.} priorStudyNames + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @instance + */ + TransferLearningConfig.prototype.priorStudyNames = $util.emptyArray; + + /** + * Creates a new TransferLearningConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig instance + */ + TransferLearningConfig.create = function create(properties) { + return new TransferLearningConfig(properties); + }; + + /** + * Encodes the specified TransferLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig} message TransferLearningConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransferLearningConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disableTransferLearning != null && Object.hasOwnProperty.call(message, "disableTransferLearning")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disableTransferLearning); + if (message.priorStudyNames != null && message.priorStudyNames.length) + for (var i = 0; i < message.priorStudyNames.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.priorStudyNames[i]); + return writer; + }; + + /** + * Encodes the specified TransferLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig} message TransferLearningConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransferLearningConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TransferLearningConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransferLearningConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.disableTransferLearning = reader.bool(); + break; + } + case 2: { + if (!(message.priorStudyNames && message.priorStudyNames.length)) + message.priorStudyNames = []; + message.priorStudyNames.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TransferLearningConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransferLearningConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TransferLearningConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TransferLearningConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.disableTransferLearning != null && message.hasOwnProperty("disableTransferLearning")) + if (typeof message.disableTransferLearning !== "boolean") + return "disableTransferLearning: boolean expected"; + if (message.priorStudyNames != null && message.hasOwnProperty("priorStudyNames")) { + if (!Array.isArray(message.priorStudyNames)) + return "priorStudyNames: array expected"; + for (var i = 0; i < message.priorStudyNames.length; ++i) + if (!$util.isString(message.priorStudyNames[i])) + return "priorStudyNames: string[] expected"; + } + return null; + }; + + /** + * Creates a TransferLearningConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig + */ + TransferLearningConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig(); + if (object.disableTransferLearning != null) + message.disableTransferLearning = Boolean(object.disableTransferLearning); + if (object.priorStudyNames) { + if (!Array.isArray(object.priorStudyNames)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.priorStudyNames: array expected"); + message.priorStudyNames = []; + for (var i = 0; i < object.priorStudyNames.length; ++i) + message.priorStudyNames[i] = String(object.priorStudyNames[i]); + } + return message; + }; + + /** + * Creates a plain object from a TransferLearningConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} message TransferLearningConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TransferLearningConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.priorStudyNames = []; + if (options.defaults) + object.disableTransferLearning = false; + if (message.disableTransferLearning != null && message.hasOwnProperty("disableTransferLearning")) + object.disableTransferLearning = message.disableTransferLearning; + if (message.priorStudyNames && message.priorStudyNames.length) { + object.priorStudyNames = []; + for (var j = 0; j < message.priorStudyNames.length; ++j) + object.priorStudyNames[j] = message.priorStudyNames[j]; + } + return object; + }; + + /** + * Converts this TransferLearningConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @instance + * @returns {Object.} JSON object + */ + TransferLearningConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TransferLearningConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TransferLearningConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig"; + }; + + return TransferLearningConfig; + })(); + /** * Algorithm enum. * @name google.cloud.aiplatform.v1beta1.StudySpec.Algorithm @@ -259238,6 +260472,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|removeContextChildren}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef RemoveContextChildrenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} [response] RemoveContextChildrenResponse + */ + + /** + * Calls RemoveContextChildren. + * @function removeContextChildren + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildrenCallback} callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.removeContextChildren = function removeContextChildren(request, callback) { + return this.rpcCall(removeContextChildren, $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest, $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse, request, callback); + }, "name", { value: "RemoveContextChildren" }); + + /** + * Calls RemoveContextChildren. + * @function removeContextChildren + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService|queryContextLineageSubgraph}. * @memberof google.cloud.aiplatform.v1beta1.MetadataService @@ -261737,6 +263004,7 @@ * @property {number|null} [pageSize] ListArtifactsRequest pageSize * @property {string|null} [pageToken] ListArtifactsRequest pageToken * @property {string|null} [filter] ListArtifactsRequest filter + * @property {string|null} [orderBy] ListArtifactsRequest orderBy */ /** @@ -261786,6 +263054,14 @@ */ ListArtifactsRequest.prototype.filter = ""; + /** + * ListArtifactsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @instance + */ + ListArtifactsRequest.prototype.orderBy = ""; + /** * Creates a new ListArtifactsRequest instance using the specified properties. * @function create @@ -261818,6 +263094,8 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; @@ -261868,6 +263146,10 @@ message.filter = reader.string(); break; } + case 5: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -261915,6 +263197,9 @@ if (message.filter != null && message.hasOwnProperty("filter")) if (!$util.isString(message.filter)) return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; @@ -261938,6 +263223,8 @@ message.pageToken = String(object.pageToken); if (object.filter != null) message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; @@ -261959,6 +263246,7 @@ object.pageSize = 0; object.pageToken = ""; object.filter = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -261968,6 +263256,8 @@ object.pageToken = message.pageToken; if (message.filter != null && message.hasOwnProperty("filter")) object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; @@ -263918,6 +265208,7 @@ * @property {number|null} [pageSize] ListContextsRequest pageSize * @property {string|null} [pageToken] ListContextsRequest pageToken * @property {string|null} [filter] ListContextsRequest filter + * @property {string|null} [orderBy] ListContextsRequest orderBy */ /** @@ -263967,6 +265258,14 @@ */ ListContextsRequest.prototype.filter = ""; + /** + * ListContextsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @instance + */ + ListContextsRequest.prototype.orderBy = ""; + /** * Creates a new ListContextsRequest instance using the specified properties. * @function create @@ -263999,6 +265298,8 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; @@ -264049,6 +265350,10 @@ message.filter = reader.string(); break; } + case 5: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -264096,6 +265401,9 @@ if (message.filter != null && message.hasOwnProperty("filter")) if (!$util.isString(message.filter)) return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; @@ -264119,6 +265427,8 @@ message.pageToken = String(object.pageToken); if (object.filter != null) message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; @@ -264140,6 +265450,7 @@ object.pageSize = 0; object.pageToken = ""; object.filter = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -264149,6 +265460,8 @@ object.pageToken = message.pageToken; if (message.filter != null && message.hasOwnProperty("filter")) object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; @@ -266530,6 +267843,424 @@ return AddContextChildrenResponse; })(); + v1beta1.RemoveContextChildrenRequest = (function() { + + /** + * Properties of a RemoveContextChildrenRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IRemoveContextChildrenRequest + * @property {string|null} [context] RemoveContextChildrenRequest context + * @property {Array.|null} [childContexts] RemoveContextChildrenRequest childContexts + */ + + /** + * Constructs a new RemoveContextChildrenRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a RemoveContextChildrenRequest. + * @implements IRemoveContextChildrenRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest=} [properties] Properties to set + */ + function RemoveContextChildrenRequest(properties) { + this.childContexts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RemoveContextChildrenRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @instance + */ + RemoveContextChildrenRequest.prototype.context = ""; + + /** + * RemoveContextChildrenRequest childContexts. + * @member {Array.} childContexts + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @instance + */ + RemoveContextChildrenRequest.prototype.childContexts = $util.emptyArray; + + /** + * Creates a new RemoveContextChildrenRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} RemoveContextChildrenRequest instance + */ + RemoveContextChildrenRequest.create = function create(properties) { + return new RemoveContextChildrenRequest(properties); + }; + + /** + * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveContextChildrenRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.childContexts != null && message.childContexts.length) + for (var i = 0; i < message.childContexts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); + return writer; + }; + + /** + * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveContextChildrenRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.context = reader.string(); + break; + } + case 2: { + if (!(message.childContexts && message.childContexts.length)) + message.childContexts = []; + message.childContexts.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RemoveContextChildrenRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RemoveContextChildrenRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.childContexts != null && message.hasOwnProperty("childContexts")) { + if (!Array.isArray(message.childContexts)) + return "childContexts: array expected"; + for (var i = 0; i < message.childContexts.length; ++i) + if (!$util.isString(message.childContexts[i])) + return "childContexts: string[] expected"; + } + return null; + }; + + /** + * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + */ + RemoveContextChildrenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.childContexts) { + if (!Array.isArray(object.childContexts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest.childContexts: array expected"); + message.childContexts = []; + for (var i = 0; i < object.childContexts.length; ++i) + message.childContexts[i] = String(object.childContexts[i]); + } + return message; + }; + + /** + * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest} message RemoveContextChildrenRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RemoveContextChildrenRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.childContexts = []; + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.childContexts && message.childContexts.length) { + object.childContexts = []; + for (var j = 0; j < message.childContexts.length; ++j) + object.childContexts[j] = message.childContexts[j]; + } + return object; + }; + + /** + * Converts this RemoveContextChildrenRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @instance + * @returns {Object.} JSON object + */ + RemoveContextChildrenRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RemoveContextChildrenRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RemoveContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest"; + }; + + return RemoveContextChildrenRequest; + })(); + + v1beta1.RemoveContextChildrenResponse = (function() { + + /** + * Properties of a RemoveContextChildrenResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IRemoveContextChildrenResponse + */ + + /** + * Constructs a new RemoveContextChildrenResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a RemoveContextChildrenResponse. + * @implements IRemoveContextChildrenResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse=} [properties] Properties to set + */ + function RemoveContextChildrenResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new RemoveContextChildrenResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} RemoveContextChildrenResponse instance + */ + RemoveContextChildrenResponse.create = function create(properties) { + return new RemoveContextChildrenResponse(properties); + }; + + /** + * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveContextChildrenResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveContextChildrenResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RemoveContextChildrenResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RemoveContextChildrenResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + */ + RemoveContextChildrenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse) + return object; + return new $root.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse(); + }; + + /** + * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse} message RemoveContextChildrenResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RemoveContextChildrenResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this RemoveContextChildrenResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @instance + * @returns {Object.} JSON object + */ + RemoveContextChildrenResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RemoveContextChildrenResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RemoveContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse"; + }; + + return RemoveContextChildrenResponse; + })(); + v1beta1.QueryContextLineageSubgraphRequest = (function() { /** @@ -267201,6 +268932,7 @@ * @property {number|null} [pageSize] ListExecutionsRequest pageSize * @property {string|null} [pageToken] ListExecutionsRequest pageToken * @property {string|null} [filter] ListExecutionsRequest filter + * @property {string|null} [orderBy] ListExecutionsRequest orderBy */ /** @@ -267250,6 +268982,14 @@ */ ListExecutionsRequest.prototype.filter = ""; + /** + * ListExecutionsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.orderBy = ""; + /** * Creates a new ListExecutionsRequest instance using the specified properties. * @function create @@ -267282,6 +269022,8 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; @@ -267332,6 +269074,10 @@ message.filter = reader.string(); break; } + case 5: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -267379,6 +269125,9 @@ if (message.filter != null && message.hasOwnProperty("filter")) if (!$util.isString(message.filter)) return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; @@ -267402,6 +269151,8 @@ message.pageToken = String(object.pageToken); if (object.filter != null) message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; @@ -267423,6 +269174,7 @@ object.pageSize = 0; object.pageToken = ""; object.filter = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -267432,6 +269184,8 @@ object.pageToken = message.pageToken; if (message.filter != null && message.hasOwnProperty("filter")) object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; @@ -285704,6 +287458,7 @@ * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory * @property {Object.|null} [parameterValues] RuntimeConfig parameterValues * @property {google.cloud.aiplatform.v1beta1.PipelineFailurePolicy|null} [failurePolicy] RuntimeConfig failurePolicy + * @property {Object.|null} [inputArtifacts] RuntimeConfig inputArtifacts */ /** @@ -285717,6 +287472,7 @@ function RuntimeConfig(properties) { this.parameters = {}; this.parameterValues = {}; + this.inputArtifacts = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -285755,6 +287511,14 @@ */ RuntimeConfig.prototype.failurePolicy = 0; + /** + * RuntimeConfig inputArtifacts. + * @member {Object.} inputArtifacts + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.inputArtifacts = $util.emptyObject; + /** * Creates a new RuntimeConfig instance using the specified properties. * @function create @@ -285793,6 +287557,11 @@ } if (message.failurePolicy != null && Object.hasOwnProperty.call(message, "failurePolicy")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.failurePolicy); + if (message.inputArtifacts != null && Object.hasOwnProperty.call(message, "inputArtifacts")) + for (var keys = Object.keys(message.inputArtifacts), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.encode(message.inputArtifacts[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; @@ -285881,6 +287650,29 @@ message.failurePolicy = reader.int32(); break; } + case 5: { + if (message.inputArtifacts === $util.emptyObject) + message.inputArtifacts = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.inputArtifacts[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -285948,6 +287740,16 @@ case 2: break; } + if (message.inputArtifacts != null && message.hasOwnProperty("inputArtifacts")) { + if (!$util.isObject(message.inputArtifacts)) + return "inputArtifacts: object expected"; + var key = Object.keys(message.inputArtifacts); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify(message.inputArtifacts[key[i]]); + if (error) + return "inputArtifacts." + error; + } + } return null; }; @@ -285999,6 +287801,16 @@ message.failurePolicy = 2; break; } + if (object.inputArtifacts) { + if (typeof object.inputArtifacts !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); + message.inputArtifacts = {}; + for (var keys = Object.keys(object.inputArtifacts), i = 0; i < keys.length; ++i) { + if (typeof object.inputArtifacts[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); + message.inputArtifacts[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.fromObject(object.inputArtifacts[keys[i]]); + } + } return message; }; @@ -286018,6 +287830,7 @@ if (options.objects || options.defaults) { object.parameters = {}; object.parameterValues = {}; + object.inputArtifacts = {}; } if (options.defaults) { object.gcsOutputDirectory = ""; @@ -286038,6 +287851,11 @@ } if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) object.failurePolicy = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy[message.failurePolicy] : message.failurePolicy; + if (message.inputArtifacts && (keys2 = Object.keys(message.inputArtifacts)).length) { + object.inputArtifacts = {}; + for (var j = 0; j < keys2.length; ++j) + object.inputArtifacts[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.toObject(message.inputArtifacts[keys2[j]], options); + } return object; }; @@ -286067,6 +287885,227 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig"; }; + RuntimeConfig.InputArtifact = (function() { + + /** + * Properties of an InputArtifact. + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @interface IInputArtifact + * @property {string|null} [artifactId] InputArtifact artifactId + */ + + /** + * Constructs a new InputArtifact. + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @classdesc Represents an InputArtifact. + * @implements IInputArtifact + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set + */ + function InputArtifact(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InputArtifact artifactId. + * @member {string|null|undefined} artifactId + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + */ + InputArtifact.prototype.artifactId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InputArtifact kind. + * @member {"artifactId"|undefined} kind + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + */ + Object.defineProperty(InputArtifact.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["artifactId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InputArtifact instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact instance + */ + InputArtifact.create = function create(properties) { + return new InputArtifact(properties); + }; + + /** + * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InputArtifact.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); + return writer; + }; + + /** + * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InputArtifact.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InputArtifact message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InputArtifact.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.artifactId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InputArtifact message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InputArtifact.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InputArtifact message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InputArtifact.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + properties.kind = 1; + if (!$util.isString(message.artifactId)) + return "artifactId: string expected"; + } + return null; + }; + + /** + * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + */ + InputArtifact.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact(); + if (object.artifactId != null) + message.artifactId = String(object.artifactId); + return message; + }; + + /** + * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact} message InputArtifact + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InputArtifact.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + object.artifactId = message.artifactId; + if (options.oneofs) + object.kind = "artifactId"; + } + return object; + }; + + /** + * Converts this InputArtifact to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + * @returns {Object.} JSON object + */ + InputArtifact.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InputArtifact + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InputArtifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact"; + }; + + return InputArtifact; + })(); + return RuntimeConfig; })(); @@ -291056,6 +293095,7 @@ * @property {number|null} [pageSize] ListPipelineJobsRequest pageSize * @property {string|null} [pageToken] ListPipelineJobsRequest pageToken * @property {string|null} [orderBy] ListPipelineJobsRequest orderBy + * @property {google.protobuf.IFieldMask|null} [readMask] ListPipelineJobsRequest readMask */ /** @@ -291113,6 +293153,14 @@ */ ListPipelineJobsRequest.prototype.orderBy = ""; + /** + * ListPipelineJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @instance + */ + ListPipelineJobsRequest.prototype.readMask = null; + /** * Creates a new ListPipelineJobsRequest instance using the specified properties. * @function create @@ -291147,6 +293195,8 @@ writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -291201,6 +293251,10 @@ message.orderBy = reader.string(); break; } + case 7: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -291251,6 +293305,11 @@ if (message.orderBy != null && message.hasOwnProperty("orderBy")) if (!$util.isString(message.orderBy)) return "orderBy: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } return null; }; @@ -291276,6 +293335,11 @@ message.pageToken = String(object.pageToken); if (object.orderBy != null) message.orderBy = String(object.orderBy); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } return message; }; @@ -291298,6 +293362,7 @@ object.pageSize = 0; object.pageToken = ""; object.orderBy = ""; + object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -291309,6 +293374,8 @@ object.pageToken = message.pageToken; if (message.orderBy != null && message.hasOwnProperty("orderBy")) object.orderBy = message.orderBy; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; @@ -360515,6 +362582,243 @@ return Money; })(); + type.Interval = (function() { + + /** + * Properties of an Interval. + * @memberof google.type + * @interface IInterval + * @property {google.protobuf.ITimestamp|null} [startTime] Interval startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Interval endTime + */ + + /** + * Constructs a new Interval. + * @memberof google.type + * @classdesc Represents an Interval. + * @implements IInterval + * @constructor + * @param {google.type.IInterval=} [properties] Properties to set + */ + function Interval(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Interval startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.type.Interval + * @instance + */ + Interval.prototype.startTime = null; + + /** + * Interval endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.type.Interval + * @instance + */ + Interval.prototype.endTime = null; + + /** + * Creates a new Interval instance using the specified properties. + * @function create + * @memberof google.type.Interval + * @static + * @param {google.type.IInterval=} [properties] Properties to set + * @returns {google.type.Interval} Interval instance + */ + Interval.create = function create(properties) { + return new Interval(properties); + }; + + /** + * Encodes the specified Interval message. Does not implicitly {@link google.type.Interval.verify|verify} messages. + * @function encode + * @memberof google.type.Interval + * @static + * @param {google.type.IInterval} message Interval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Interval.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Interval message, length delimited. Does not implicitly {@link google.type.Interval.verify|verify} messages. + * @function encodeDelimited + * @memberof google.type.Interval + * @static + * @param {google.type.IInterval} message Interval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Interval.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Interval message from the specified reader or buffer. + * @function decode + * @memberof google.type.Interval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.type.Interval} Interval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Interval.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.type.Interval(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Interval message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.type.Interval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.type.Interval} Interval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Interval.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Interval message. + * @function verify + * @memberof google.type.Interval + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Interval.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + return null; + }; + + /** + * Creates an Interval message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.type.Interval + * @static + * @param {Object.} object Plain object + * @returns {google.type.Interval} Interval + */ + Interval.fromObject = function fromObject(object) { + if (object instanceof $root.google.type.Interval) + return object; + var message = new $root.google.type.Interval(); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.type.Interval.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.type.Interval.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from an Interval message. Also converts values to other types if specified. + * @function toObject + * @memberof google.type.Interval + * @static + * @param {google.type.Interval} message Interval + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Interval.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.startTime = null; + object.endTime = null; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + return object; + }; + + /** + * Converts this Interval to JSON. + * @function toJSON + * @memberof google.type.Interval + * @instance + * @returns {Object.} JSON object + */ + Interval.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Interval + * @function getTypeUrl + * @memberof google.type.Interval + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Interval.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.type.Interval"; + }; + + return Interval; + })(); + type.Color = (function() { /** diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index f2976212876..06d32b860ee 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -5255,6 +5255,10 @@ "invalidRowCount": { "type": "int64", "id": 6 + }, + "timestampOutsideRetentionRowsCount": { + "type": "int64", + "id": 4 } } }, @@ -5785,6 +5789,10 @@ "invalidRowCount": { "type": "int64", "id": 6 + }, + "timestampOutsideRetentionRowsCount": { + "type": "int64", + "id": 7 } } }, @@ -9893,6 +9901,26 @@ } ] }, + "RemoveContextChildren": { + "requestType": "RemoveContextChildrenRequest", + "responseType": "RemoveContextChildrenResponse", + "options": { + "(google.api.http).post": "/v1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:removeContextChildren", + "(google.api.http).body": "*", + "(google.api.method_signature)": "context,child_contexts" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:removeContextChildren", + "body": "*" + } + }, + { + "(google.api.method_signature)": "context,child_contexts" + } + ] + }, "QueryContextLineageSubgraph": { "requestType": "QueryContextLineageSubgraphRequest", "responseType": "LineageSubgraph", @@ -10314,6 +10342,10 @@ "filter": { "type": "string", "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 } } }, @@ -10477,6 +10509,10 @@ "filter": { "type": "string", "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 } } }, @@ -10642,6 +10678,29 @@ "AddContextChildrenResponse": { "fields": {} }, + "RemoveContextChildrenRequest": { + "fields": { + "context": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Context" + } + }, + "childContexts": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Context" + } + } + } + }, + "RemoveContextChildrenResponse": { + "fields": {} + }, "QueryContextLineageSubgraphRequest": { "fields": { "context": { @@ -10710,6 +10769,10 @@ "filter": { "type": "string", "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 } } }, @@ -23639,6 +23702,10 @@ "invalidRowCount": { "type": "int64", "id": 6 + }, + "timestampOutsideRetentionRowsCount": { + "type": "int64", + "id": 4 } } }, @@ -24169,6 +24236,10 @@ "invalidRowCount": { "type": "int64", "id": 6 + }, + "timestampOutsideRetentionRowsCount": { + "type": "int64", + "id": 7 } } }, @@ -24224,7 +24295,8 @@ "oneofs": { "DeleteOption": { "oneof": [ - "selectEntity" + "selectEntity", + "selectTimeRangeAndFeature" ] } }, @@ -24233,6 +24305,10 @@ "type": "SelectEntity", "id": 2 }, + "selectTimeRangeAndFeature": { + "type": "SelectTimeRangeAndFeature", + "id": 3 + }, "entityType": { "type": "string", "id": 1, @@ -24253,6 +24329,28 @@ } } } + }, + "SelectTimeRangeAndFeature": { + "fields": { + "timeRange": { + "type": "google.type.Interval", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureSelector": { + "type": "FeatureSelector", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "skipOnlineStorageDelete": { + "type": "bool", + "id": 3 + } + } } } }, @@ -24635,6 +24733,10 @@ "measurementSelectionType": { "type": "MeasurementSelectionType", "id": 7 + }, + "transferLearningConfig": { + "type": "TransferLearningConfig", + "id": 10 } }, "nested": { @@ -24974,6 +25076,22 @@ } } }, + "TransferLearningConfig": { + "fields": { + "disableTransferLearning": { + "type": "bool", + "id": 1 + }, + "priorStudyNames": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "Algorithm": { "values": { "ALGORITHM_UNSPECIFIED": 0, @@ -27890,6 +28008,26 @@ } ] }, + "RemoveContextChildren": { + "requestType": "RemoveContextChildrenRequest", + "responseType": "RemoveContextChildrenResponse", + "options": { + "(google.api.http).post": "/v1beta1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:removeContextChildren", + "(google.api.http).body": "*", + "(google.api.method_signature)": "context,child_contexts" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:removeContextChildren", + "body": "*" + } + }, + { + "(google.api.method_signature)": "context,child_contexts" + } + ] + }, "QueryContextLineageSubgraph": { "requestType": "QueryContextLineageSubgraphRequest", "responseType": "LineageSubgraph", @@ -28311,6 +28449,10 @@ "filter": { "type": "string", "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 } } }, @@ -28474,6 +28616,10 @@ "filter": { "type": "string", "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 } } }, @@ -28639,6 +28785,29 @@ "AddContextChildrenResponse": { "fields": {} }, + "RemoveContextChildrenRequest": { + "fields": { + "context": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Context" + } + }, + "childContexts": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Context" + } + } + } + }, + "RemoveContextChildrenResponse": { + "fields": {} + }, "QueryContextLineageSubgraphRequest": { "fields": { "context": { @@ -28707,6 +28876,10 @@ "filter": { "type": "string", "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 } } }, @@ -30563,6 +30736,28 @@ "failurePolicy": { "type": "PipelineFailurePolicy", "id": 4 + }, + "inputArtifacts": { + "keyType": "string", + "type": "InputArtifact", + "id": 5 + } + }, + "nested": { + "InputArtifact": { + "oneofs": { + "kind": { + "oneof": [ + "artifactId" + ] + } + }, + "fields": { + "artifactId": { + "type": "string", + "id": 1 + } + } } } } @@ -31223,6 +31418,10 @@ "orderBy": { "type": "string", "id": 6 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 7 } } }, @@ -37486,6 +37685,18 @@ } } }, + "Interval": { + "fields": { + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 1 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + } + }, "Color": { "fields": { "red": { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.js index 161e1e57fc5..8b024535147 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.js @@ -41,11 +41,16 @@ function main(parent) { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_custom_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_custom_jobs.js index 64478c89087..3e0b9855fb3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_custom_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_custom_jobs.js @@ -40,11 +40,16 @@ function main(parent) { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_data_labeling_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_data_labeling_jobs.js index 414ecf04bde..35104fac85c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_data_labeling_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_data_labeling_jobs.js @@ -40,11 +40,16 @@ function main(parent) { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js index eddca31dd50..db8c972198b 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js @@ -40,11 +40,16 @@ function main(parent) { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js index 8429b5d5ff8..d85e8b3e2c7 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js @@ -40,11 +40,16 @@ function main(parent) { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.list_artifacts.js b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.list_artifacts.js index b38c0759288..01c231f99e6 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.list_artifacts.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.list_artifacts.js @@ -74,6 +74,15 @@ function main(parent) { * For example: `display_name = "test" AND metadata.field1.bool_value = true`. */ // const filter = 'abc123' + /** + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. + */ + // const orderBy = 'abc123' // Imports the Aiplatform library const {MetadataServiceClient} = require('@google-cloud/aiplatform').v1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.list_contexts.js b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.list_contexts.js index 62daa69a43d..fb467faae46 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.list_contexts.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.list_contexts.js @@ -77,6 +77,15 @@ function main(parent) { * For example: `display_name = "test" AND metadata.field1.bool_value = true`. */ // const filter = 'abc123' + /** + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. + */ + // const orderBy = 'abc123' // Imports the Aiplatform library const {MetadataServiceClient} = require('@google-cloud/aiplatform').v1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.list_executions.js b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.list_executions.js index 6c654a57cd7..721df98b120 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.list_executions.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.list_executions.js @@ -74,6 +74,15 @@ function main(parent) { * For example: `display_name = "test" AND metadata.field1.bool_value = true`. */ // const filter = 'abc123' + /** + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. + */ + // const orderBy = 'abc123' // Imports the Aiplatform library const {MetadataServiceClient} = require('@google-cloud/aiplatform').v1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.remove_context_children.js b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.remove_context_children.js new file mode 100644 index 00000000000..be6ef239e56 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.remove_context_children.js @@ -0,0 +1,67 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(context) { + // [START aiplatform_v1_generated_MetadataService_RemoveContextChildren_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the parent Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + */ + // const context = 'abc123' + /** + * The resource names of the child Contexts. + */ + // const childContexts = 'abc123' + + // Imports the Aiplatform library + const {MetadataServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new MetadataServiceClient(); + + async function callRemoveContextChildren() { + // Construct request + const request = { + context, + }; + + // Run request + const response = await aiplatformClient.removeContextChildren(request); + console.log(response); + } + + callRemoveContextChildren(); + // [END aiplatform_v1_generated_MetadataService_RemoveContextChildren_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_training_pipelines.js b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_training_pipelines.js index fcb674680ce..d9eafc16054 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_training_pipelines.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_training_pipelines.js @@ -41,6 +41,9 @@ function main(parent) { * * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * Some examples of using the filter are: * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"` * * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"` diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json index 5434f51e889..18c3f93f540 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json @@ -2746,7 +2746,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 90, "type": "FULL" } ], @@ -2966,7 +2966,7 @@ "segments": [ { "start": 25, - "end": 91, + "end": 96, "type": "FULL" } ], @@ -3190,7 +3190,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 90, "type": "FULL" } ], @@ -3410,7 +3410,7 @@ "segments": [ { "start": 25, - "end": 86, + "end": 91, "type": "FULL" } ], @@ -3698,7 +3698,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 87, "type": "FULL" } ], @@ -4186,7 +4186,7 @@ "segments": [ { "start": 25, - "end": 97, + "end": 106, "type": "FULL" } ], @@ -4210,6 +4210,10 @@ { "name": "filter", "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" } ], "resultType": ".google.cloud.aiplatform.v1.ListArtifactsResponse", @@ -4466,7 +4470,7 @@ "segments": [ { "start": 25, - "end": 100, + "end": 109, "type": "FULL" } ], @@ -4490,6 +4494,10 @@ { "name": "filter", "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" } ], "resultType": ".google.cloud.aiplatform.v1.ListContextsResponse", @@ -4743,6 +4751,50 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_MetadataService_RemoveContextChildren_async", + "title": "DatasetService removeContextChildren Sample", + "origin": "API_DEFINITION", + "description": " Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT added to the parent Context, they are simply skipped.", + "canonical": true, + "file": "metadata_service.remove_context_children.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RemoveContextChildren", + "fullName": "google.cloud.aiplatform.v1.MetadataService.RemoveContextChildren", + "async": true, + "parameters": [ + { + "name": "context", + "type": "TYPE_STRING" + }, + { + "name": "child_contexts", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1.RemoveContextChildrenResponse", + "client": { + "shortName": "MetadataServiceClient", + "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" + }, + "method": { + "shortName": "RemoveContextChildren", + "fullName": "google.cloud.aiplatform.v1.MetadataService.RemoveContextChildren", + "service": { + "shortName": "MetadataService", + "fullName": "google.cloud.aiplatform.v1.MetadataService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_MetadataService_QueryContextLineageSubgraph_async", "title": "DatasetService queryContextLineageSubgraph Sample", @@ -4882,7 +4934,7 @@ "segments": [ { "start": 25, - "end": 97, + "end": 106, "type": "FULL" } ], @@ -4906,6 +4958,10 @@ { "name": "filter", "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" } ], "resultType": ".google.cloud.aiplatform.v1.ListExecutionsResponse", @@ -6226,7 +6282,7 @@ "segments": [ { "start": 25, - "end": 87, + "end": 90, "type": "FULL" } ], diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_feature_values.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_feature_values.js index bf59ebc197f..2b96d712ad9 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_feature_values.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_feature_values.js @@ -33,8 +33,13 @@ function main(entityType) { */ // const selectEntity = {} /** - * Required. The resource name of the EntityType grouping the Features for - * which values are being deleted from. Format: + * Select feature values to be deleted by specifying time range and + * features. + */ + // const selectTimeRangeAndFeature = {} + /** + * Required. The resource name of the EntityType grouping the Features for which values + * are being deleted from. Format: * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` */ // const entityType = 'abc123' diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js index 598ad5c5145..aec543006d9 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js @@ -41,11 +41,16 @@ function main(parent) { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_custom_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_custom_jobs.js index 4de9d205dc4..a1ed029d37c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_custom_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_custom_jobs.js @@ -40,11 +40,16 @@ function main(parent) { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js index ca1ee2031fe..1950798c817 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js @@ -40,11 +40,16 @@ function main(parent) { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js index 7bcd2114297..752e0823232 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js @@ -40,11 +40,16 @@ function main(parent) { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js index 956fe991621..4c3e2975153 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js @@ -40,11 +40,16 @@ function main(parent) { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_artifacts.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_artifacts.js index d16176f4ac5..f256190c46e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_artifacts.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_artifacts.js @@ -74,6 +74,15 @@ function main(parent) { * For example: `display_name = "test" AND metadata.field1.bool_value = true`. */ // const filter = 'abc123' + /** + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. + */ + // const orderBy = 'abc123' // Imports the Aiplatform library const {MetadataServiceClient} = require('@google-cloud/aiplatform').v1beta1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_contexts.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_contexts.js index 034711b7cf7..a1d3857a92a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_contexts.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_contexts.js @@ -77,6 +77,15 @@ function main(parent) { * For example: `display_name = "test" AND metadata.field1.bool_value = true`. */ // const filter = 'abc123' + /** + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. + */ + // const orderBy = 'abc123' // Imports the Aiplatform library const {MetadataServiceClient} = require('@google-cloud/aiplatform').v1beta1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_executions.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_executions.js index db7b8ca9ffe..462c346f04e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_executions.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_executions.js @@ -74,6 +74,15 @@ function main(parent) { * For example: `display_name = "test" AND metadata.field1.bool_value = true`. */ // const filter = 'abc123' + /** + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. + */ + // const orderBy = 'abc123' // Imports the Aiplatform library const {MetadataServiceClient} = require('@google-cloud/aiplatform').v1beta1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.remove_context_children.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.remove_context_children.js new file mode 100644 index 00000000000..d4aa462ce97 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.remove_context_children.js @@ -0,0 +1,67 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(context) { + // [START aiplatform_v1beta1_generated_MetadataService_RemoveContextChildren_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the parent Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + */ + // const context = 'abc123' + /** + * The resource names of the child Contexts. + */ + // const childContexts = 'abc123' + + // Imports the Aiplatform library + const {MetadataServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new MetadataServiceClient(); + + async function callRemoveContextChildren() { + // Construct request + const request = { + context, + }; + + // Run request + const response = await aiplatformClient.removeContextChildren(request); + console.log(response); + } + + callRemoveContextChildren(); + // [END aiplatform_v1beta1_generated_MetadataService_RemoveContextChildren_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js index 79e9c809dcf..c0e49e885ae 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js @@ -91,6 +91,10 @@ function main(parent) { * * `start_time` */ // const orderBy = 'abc123' + /** + * Mask specifying which fields to read. + */ + // const readMask = {} // Imports the Aiplatform library const {PipelineServiceClient} = require('@google-cloud/aiplatform').v1beta1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_training_pipelines.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_training_pipelines.js index 20afd526bd1..b9ab1be4fd0 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_training_pipelines.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_training_pipelines.js @@ -41,6 +41,9 @@ function main(parent) { * * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * Some examples of using the filter are: * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"` * * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"` diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json index 479744257fa..6071250cb46 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json @@ -2206,7 +2206,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 65, "type": "FULL" } ], @@ -2219,6 +2219,10 @@ "name": "select_entity", "type": ".google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity" }, + { + "name": "select_time_range_and_feature", + "type": ".google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature" + }, { "name": "entity_type", "type": "TYPE_STRING" @@ -3054,7 +3058,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 90, "type": "FULL" } ], @@ -3274,7 +3278,7 @@ "segments": [ { "start": 25, - "end": 91, + "end": 96, "type": "FULL" } ], @@ -3498,7 +3502,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 90, "type": "FULL" } ], @@ -3718,7 +3722,7 @@ "segments": [ { "start": 25, - "end": 86, + "end": 91, "type": "FULL" } ], @@ -4006,7 +4010,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 87, "type": "FULL" } ], @@ -4494,7 +4498,7 @@ "segments": [ { "start": 25, - "end": 97, + "end": 106, "type": "FULL" } ], @@ -4518,6 +4522,10 @@ { "name": "filter", "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" } ], "resultType": ".google.cloud.aiplatform.v1beta1.ListArtifactsResponse", @@ -4774,7 +4782,7 @@ "segments": [ { "start": 25, - "end": 100, + "end": 109, "type": "FULL" } ], @@ -4798,6 +4806,10 @@ { "name": "filter", "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" } ], "resultType": ".google.cloud.aiplatform.v1beta1.ListContextsResponse", @@ -5051,6 +5063,50 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_MetadataService_RemoveContextChildren_async", + "title": "DatasetService removeContextChildren Sample", + "origin": "API_DEFINITION", + "description": " Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT added to the parent Context, they are simply skipped.", + "canonical": true, + "file": "metadata_service.remove_context_children.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RemoveContextChildren", + "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildren", + "async": true, + "parameters": [ + { + "name": "context", + "type": "TYPE_STRING" + }, + { + "name": "child_contexts", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse", + "client": { + "shortName": "MetadataServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" + }, + "method": { + "shortName": "RemoveContextChildren", + "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildren", + "service": { + "shortName": "MetadataService", + "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_MetadataService_QueryContextLineageSubgraph_async", "title": "DatasetService queryContextLineageSubgraph Sample", @@ -5190,7 +5246,7 @@ "segments": [ { "start": 25, - "end": 97, + "end": 106, "type": "FULL" } ], @@ -5214,6 +5270,10 @@ { "name": "filter", "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" } ], "resultType": ".google.cloud.aiplatform.v1beta1.ListExecutionsResponse", @@ -6574,7 +6634,7 @@ "segments": [ { "start": 25, - "end": 87, + "end": 90, "type": "FULL" } ], @@ -6798,7 +6858,7 @@ "segments": [ { "start": 25, - "end": 114, + "end": 118, "type": "FULL" } ], @@ -6826,6 +6886,10 @@ { "name": "order_by", "type": "TYPE_STRING" + }, + { + "name": "read_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse", diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts index b9b6636f560..708819156ae 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts @@ -23,7 +23,6 @@ import type { CallOptions, Descriptors, ClientOptions, - GrpcClientOptions, IamClient, IamProtos, LocationsClient, @@ -65,7 +64,6 @@ export class FeaturestoreOnlineServingServiceClient { iamClient: IamClient; locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; - operationsClient: gax.OperationsClient; featurestoreOnlineServingServiceStub?: Promise<{[name: string]: Function}>; /** @@ -299,962 +297,6 @@ export class FeaturestoreOnlineServingServiceClient { ), }; - const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a - // an Operation object that allows for tracking of the operation, - // rather than holding a request open. - const lroOptions: GrpcClientOptions = { - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }; - if (opts.fallback === 'rest') { - lroOptions.protoJson = protoFilesRoot; - lroOptions.httpRules = [ - { - selector: 'google.cloud.location.Locations.GetLocation', - get: '/ui/{name=projects/*/locations/*}', - additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], - }, - { - selector: 'google.cloud.location.Locations.ListLocations', - get: '/ui/{name=projects/*}/locations', - additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], - }, - { - selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', - post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', - additional_bindings: [ - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', - }, - ], - }, - { - selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', - post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', - body: '*', - additional_bindings: [ - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', - body: '*', - }, - ], - }, - { - selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', - post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', - additional_bindings: [ - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', - }, - ], - }, - { - selector: 'google.longrunning.Operations.CancelOperation', - post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', - additional_bindings: [ - { - post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', - }, - {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', - }, - ], - }, - { - selector: 'google.longrunning.Operations.DeleteOperation', - delete: '/ui/{name=projects/*/locations/*/operations/*}', - additional_bindings: [ - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, - { - delete: - '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/studies/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, - { - delete: - '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, - { - delete: - '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/studies/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - ], - }, - { - selector: 'google.longrunning.Operations.GetOperation', - get: '/ui/{name=projects/*/locations/*/operations/*}', - additional_bindings: [ - {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - {get: '/v1/{name=projects/*/locations/*/operations/*}'}, - {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, - { - get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, - { - get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, - { - get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, - { - get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - ], - }, - { - selector: 'google.longrunning.Operations.ListOperations', - get: '/ui/{name=projects/*/locations/*}/operations', - additional_bindings: [ - {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, - {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', - }, - {get: '/v1/{name=projects/*/locations/*}/operations'}, - {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', - }, - {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, - { - get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', - }, - {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, - { - get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', - }, - {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, - { - get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', - }, - {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, - { - get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', - }, - {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, - { - get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', - }, - ], - }, - { - selector: 'google.longrunning.Operations.WaitOperation', - post: '/ui/{name=projects/*/locations/*/operations/*}:wait', - additional_bindings: [ - { - post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', - }, - {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', - }, - ], - }, - ]; - } - this.operationsClient = this._gaxModule - .lro(lroOptions) - .operationsClient(opts); - - this.descriptors.longrunning = {}; - // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( 'google.cloud.aiplatform.v1.FeaturestoreOnlineServingService', @@ -1774,183 +816,6 @@ export class FeaturestoreOnlineServingServiceClient { return this.locationsClient.listLocationsAsync(request, options); } - /** - * Gets the latest state of a long-running operation. Clients can use this - * method to poll the operation result at intervals as recommended by the API - * service. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error, ?Object)=} callback - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"}. - * @return {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"}. The promise has a method named - * "cancel" which cancels the ongoing API call. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * const name = ''; - * const [response] = await client.getOperation({name}); - * // doThingsWith(response) - * ``` - */ - getOperation( - request: protos.google.longrunning.GetOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.longrunning.Operation, - protos.google.longrunning.GetOperationRequest, - {} | null | undefined - >, - callback?: Callback< - protos.google.longrunning.Operation, - protos.google.longrunning.GetOperationRequest, - {} | null | undefined - > - ): Promise<[protos.google.longrunning.Operation]> { - return this.operationsClient.getOperation(request, options, callback); - } - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. - * - * For-await-of syntax is used with the iterable to recursively get response element on-demand. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation collection. - * @param {string} request.filter - The standard list filter. - * @param {number=} request.pageSize - - * The maximum number of resources contained in the underlying API - * response. If page streaming is performed per-resource, this - * parameter does not affect the return value. If page streaming is - * performed per-page, this determines the maximum number of - * resources in a page. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * for await (const response of client.listOperationsAsync(request)); - * // doThingsWith(response) - * ``` - */ - listOperationsAsync( - request: protos.google.longrunning.ListOperationsRequest, - options?: gax.CallOptions - ): AsyncIterable { - return this.operationsClient.listOperationsAsync(request, options); - } - /** - * Starts asynchronous cancellation on a long-running operation. The server - * makes a best effort to cancel the operation, but success is not - * guaranteed. If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Clients can use - * {@link Operations.GetOperation} or - * other methods to check whether the cancellation succeeded or whether the - * operation completed despite cancellation. On successful cancellation, - * the operation is not deleted; instead, it becomes an operation with - * an {@link Operation.error} value with a {@link google.rpc.Status.code} of - * 1, corresponding to `Code.CANCELLED`. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource to be cancelled. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error)=} callback - * The function which will be called with the result of the API call. - * @return {Promise} - The promise which resolves when API call finishes. - * The promise has a method named "cancel" which cancels the ongoing API - * call. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * await client.cancelOperation({name: ''}); - * ``` - */ - cancelOperation( - request: protos.google.longrunning.CancelOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.CancelOperationRequest, - {} | undefined | null - >, - callback?: Callback< - protos.google.longrunning.CancelOperationRequest, - protos.google.protobuf.Empty, - {} | undefined | null - > - ): Promise { - return this.operationsClient.cancelOperation(request, options, callback); - } - - /** - * Deletes a long-running operation. This method indicates that the client is - * no longer interested in the operation result. It does not cancel the - * operation. If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource to be deleted. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error)=} callback - * The function which will be called with the result of the API call. - * @return {Promise} - The promise which resolves when API call finishes. - * The promise has a method named "cancel" which cancels the ongoing API - * call. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * await client.deleteOperation({name: ''}); - * ``` - */ - deleteOperation( - request: protos.google.longrunning.DeleteOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.DeleteOperationRequest, - {} | null | undefined - >, - callback?: Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.DeleteOperationRequest, - {} | null | undefined - > - ): Promise { - return this.operationsClient.deleteOperation(request, options, callback); - } - // -------------------- // -- Path templates -- // -------------------- @@ -4146,7 +3011,6 @@ export class FeaturestoreOnlineServingServiceClient { stub.close(); this.iamClient.close(); this.locationsClient.close(); - this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json index bc7d2508d77..02521d36d28 100644 --- a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json @@ -1046,6 +1046,11 @@ "addContextChildren" ] }, + "RemoveContextChildren": { + "methods": [ + "removeContextChildren" + ] + }, "QueryContextLineageSubgraph": { "methods": [ "queryContextLineageSubgraph" @@ -1216,6 +1221,11 @@ "addContextChildren" ] }, + "RemoveContextChildren": { + "methods": [ + "removeContextChildren" + ] + }, "QueryContextLineageSubgraph": { "methods": [ "queryContextLineageSubgraph" 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 21daa29b64c..9e926589b9f 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts @@ -4071,6 +4071,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4078,6 +4081,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4191,6 +4196,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4198,6 +4206,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4259,6 +4269,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4266,6 +4279,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4326,6 +4341,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4333,6 +4351,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4450,6 +4470,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4457,6 +4480,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4522,6 +4547,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4529,6 +4557,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4593,6 +4623,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4600,6 +4633,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4717,6 +4752,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4724,6 +4762,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4785,6 +4825,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4792,6 +4835,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4853,6 +4898,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4860,6 +4908,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4978,6 +5028,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4985,6 +5038,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -5047,6 +5102,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -5054,6 +5112,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -5375,6 +5435,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -5382,6 +5445,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -5496,6 +5561,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -5503,6 +5571,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -5562,6 +5632,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -5569,6 +5642,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken diff --git a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts index 60024f46d2c..ae73eb3b1a9 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts @@ -1442,6 +1442,7 @@ export class MetadataServiceClient { 'purgeContexts', 'addContextArtifactsAndExecutions', 'addContextChildren', + 'removeContextChildren', 'queryContextLineageSubgraph', 'createExecution', 'getExecution', @@ -2435,6 +2436,110 @@ export class MetadataServiceClient { this.initialize(); return this.innerApiCalls.addContextChildren(request, options, callback); } + /** + * Remove a set of children contexts from a parent Context. If any of the + * child Contexts were NOT added to the parent Context, they are + * simply skipped. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.context + * Required. The resource name of the parent Context. + * + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * @param {string[]} request.childContexts + * The resource names of the child Contexts. + * @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 [RemoveContextChildrenResponse]{@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/metadata_service.remove_context_children.js + * region_tag:aiplatform_v1_generated_MetadataService_RemoveContextChildren_async + */ + removeContextChildren( + request?: protos.google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, + ( + | protos.google.cloud.aiplatform.v1.IRemoveContextChildrenRequest + | undefined + ), + {} | undefined + ] + >; + removeContextChildren( + request: protos.google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, + | protos.google.cloud.aiplatform.v1.IRemoveContextChildrenRequest + | null + | undefined, + {} | null | undefined + > + ): void; + removeContextChildren( + request: protos.google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, + | protos.google.cloud.aiplatform.v1.IRemoveContextChildrenRequest + | null + | undefined, + {} | null | undefined + > + ): void; + removeContextChildren( + request?: protos.google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, + | protos.google.cloud.aiplatform.v1.IRemoveContextChildrenRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, + | protos.google.cloud.aiplatform.v1.IRemoveContextChildrenRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, + ( + | protos.google.cloud.aiplatform.v1.IRemoveContextChildrenRequest + | 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'] = + this._gaxModule.routingHeader.fromParams({ + context: request.context ?? '', + }); + this.initialize(); + return this.innerApiCalls.removeContextChildren(request, options, callback); + } /** * Retrieves Artifacts and Executions within the specified Context, connected * by Event edges and returned as a LineageSubgraph. @@ -4820,6 +4925,13 @@ export class MetadataServiceClient { * logical operators (`AND` & `OR`). * * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @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. @@ -4954,6 +5066,13 @@ export class MetadataServiceClient { * logical operators (`AND` & `OR`). * * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -5036,6 +5155,13 @@ export class MetadataServiceClient { * logical operators (`AND` & `OR`). * * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -5121,6 +5247,13 @@ export class MetadataServiceClient { * logical operators (`AND` & `OR`). * * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @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. @@ -5259,6 +5392,13 @@ export class MetadataServiceClient { * logical operators (`AND` & `OR`). * * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -5345,6 +5485,13 @@ export class MetadataServiceClient { * logical operators (`AND` & `OR`). * * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -5425,6 +5572,13 @@ export class MetadataServiceClient { * Each of the above supported filters can be combined together using * logical operators (`AND` & `OR`). * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @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. @@ -5558,6 +5712,13 @@ export class MetadataServiceClient { * Each of the above supported filters can be combined together using * logical operators (`AND` & `OR`). * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -5639,6 +5800,13 @@ export class MetadataServiceClient { * Each of the above supported filters can be combined together using * logical operators (`AND` & `OR`). * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-aiplatform/src/v1/metadata_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/metadata_service_client_config.json index 22fd826dc32..3c69196d680 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_client_config.json @@ -92,6 +92,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "RemoveContextChildren": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "QueryContextLineageSubgraph": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" 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 ceb88dcb584..21696d0553b 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts @@ -2351,6 +2351,9 @@ export class PipelineServiceClient { * * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -2473,6 +2476,9 @@ export class PipelineServiceClient { * * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -2543,6 +2549,9 @@ export class PipelineServiceClient { * * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * 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 3c31bb66188..c6eca98e620 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts @@ -23,7 +23,6 @@ import type { CallOptions, Descriptors, ClientOptions, - GrpcClientOptions, IamClient, IamProtos, LocationsClient, @@ -65,7 +64,6 @@ export class PredictionServiceClient { iamClient: IamClient; locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; - operationsClient: gax.OperationsClient; predictionServiceStub?: Promise<{[name: string]: Function}>; /** @@ -289,962 +287,6 @@ export class PredictionServiceClient { ), }; - const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a - // an Operation object that allows for tracking of the operation, - // rather than holding a request open. - const lroOptions: GrpcClientOptions = { - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }; - if (opts.fallback === 'rest') { - lroOptions.protoJson = protoFilesRoot; - lroOptions.httpRules = [ - { - selector: 'google.cloud.location.Locations.GetLocation', - get: '/ui/{name=projects/*/locations/*}', - additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], - }, - { - selector: 'google.cloud.location.Locations.ListLocations', - get: '/ui/{name=projects/*}/locations', - additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], - }, - { - selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', - post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', - additional_bindings: [ - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', - }, - ], - }, - { - selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', - post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', - body: '*', - additional_bindings: [ - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', - body: '*', - }, - ], - }, - { - selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', - post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', - additional_bindings: [ - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', - }, - ], - }, - { - selector: 'google.longrunning.Operations.CancelOperation', - post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', - additional_bindings: [ - { - post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', - }, - {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', - }, - ], - }, - { - selector: 'google.longrunning.Operations.DeleteOperation', - delete: '/ui/{name=projects/*/locations/*/operations/*}', - additional_bindings: [ - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, - { - delete: - '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/studies/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, - { - delete: - '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, - { - delete: - '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/studies/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - delete: - '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - ], - }, - { - selector: 'google.longrunning.Operations.GetOperation', - get: '/ui/{name=projects/*/locations/*/operations/*}', - additional_bindings: [ - {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - {get: '/v1/{name=projects/*/locations/*/operations/*}'}, - {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, - { - get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, - { - get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, - { - get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, - { - get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - ], - }, - { - selector: 'google.longrunning.Operations.ListOperations', - get: '/ui/{name=projects/*/locations/*}/operations', - additional_bindings: [ - {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, - {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', - }, - {get: '/v1/{name=projects/*/locations/*}/operations'}, - {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', - }, - {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, - { - get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', - }, - {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, - { - get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', - }, - {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, - { - get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', - }, - {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, - { - get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', - }, - {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, - { - get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', - }, - { - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', - }, - ], - }, - { - selector: 'google.longrunning.Operations.WaitOperation', - post: '/ui/{name=projects/*/locations/*/operations/*}:wait', - additional_bindings: [ - { - post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', - }, - {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', - }, - { - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', - }, - ], - }, - ]; - } - this.operationsClient = this._gaxModule - .lro(lroOptions) - .operationsClient(opts); - - this.descriptors.longrunning = {}; - // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( 'google.cloud.aiplatform.v1.PredictionService', @@ -1928,183 +970,6 @@ export class PredictionServiceClient { return this.locationsClient.listLocationsAsync(request, options); } - /** - * Gets the latest state of a long-running operation. Clients can use this - * method to poll the operation result at intervals as recommended by the API - * service. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error, ?Object)=} callback - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"}. - * @return {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"}. The promise has a method named - * "cancel" which cancels the ongoing API call. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * const name = ''; - * const [response] = await client.getOperation({name}); - * // doThingsWith(response) - * ``` - */ - getOperation( - request: protos.google.longrunning.GetOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.longrunning.Operation, - protos.google.longrunning.GetOperationRequest, - {} | null | undefined - >, - callback?: Callback< - protos.google.longrunning.Operation, - protos.google.longrunning.GetOperationRequest, - {} | null | undefined - > - ): Promise<[protos.google.longrunning.Operation]> { - return this.operationsClient.getOperation(request, options, callback); - } - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. - * - * For-await-of syntax is used with the iterable to recursively get response element on-demand. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation collection. - * @param {string} request.filter - The standard list filter. - * @param {number=} request.pageSize - - * The maximum number of resources contained in the underlying API - * response. If page streaming is performed per-resource, this - * parameter does not affect the return value. If page streaming is - * performed per-page, this determines the maximum number of - * resources in a page. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * for await (const response of client.listOperationsAsync(request)); - * // doThingsWith(response) - * ``` - */ - listOperationsAsync( - request: protos.google.longrunning.ListOperationsRequest, - options?: gax.CallOptions - ): AsyncIterable { - return this.operationsClient.listOperationsAsync(request, options); - } - /** - * Starts asynchronous cancellation on a long-running operation. The server - * makes a best effort to cancel the operation, but success is not - * guaranteed. If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Clients can use - * {@link Operations.GetOperation} or - * other methods to check whether the cancellation succeeded or whether the - * operation completed despite cancellation. On successful cancellation, - * the operation is not deleted; instead, it becomes an operation with - * an {@link Operation.error} value with a {@link google.rpc.Status.code} of - * 1, corresponding to `Code.CANCELLED`. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource to be cancelled. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error)=} callback - * The function which will be called with the result of the API call. - * @return {Promise} - The promise which resolves when API call finishes. - * The promise has a method named "cancel" which cancels the ongoing API - * call. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * await client.cancelOperation({name: ''}); - * ``` - */ - cancelOperation( - request: protos.google.longrunning.CancelOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.CancelOperationRequest, - {} | undefined | null - >, - callback?: Callback< - protos.google.longrunning.CancelOperationRequest, - protos.google.protobuf.Empty, - {} | undefined | null - > - ): Promise { - return this.operationsClient.cancelOperation(request, options, callback); - } - - /** - * Deletes a long-running operation. This method indicates that the client is - * no longer interested in the operation result. It does not cancel the - * operation. If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource to be deleted. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error)=} callback - * The function which will be called with the result of the API call. - * @return {Promise} - The promise which resolves when API call finishes. - * The promise has a method named "cancel" which cancels the ongoing API - * call. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * await client.deleteOperation({name: ''}); - * ``` - */ - deleteOperation( - request: protos.google.longrunning.DeleteOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.DeleteOperationRequest, - {} | null | undefined - >, - callback?: Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.DeleteOperationRequest, - {} | null | undefined - > - ): Promise { - return this.operationsClient.deleteOperation(request, options, callback); - } - // -------------------- // -- Path templates -- // -------------------- @@ -4300,7 +3165,6 @@ export class PredictionServiceClient { stub.close(); this.iamClient.close(); this.locationsClient.close(); - this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts index 7d434919a96..d566e8d61cf 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts @@ -23,7 +23,6 @@ import type { CallOptions, Descriptors, ClientOptions, - GrpcClientOptions, IamClient, IamProtos, LocationsClient, @@ -65,7 +64,6 @@ export class FeaturestoreOnlineServingServiceClient { iamClient: IamClient; locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; - operationsClient: gax.OperationsClient; featurestoreOnlineServingServiceStub?: Promise<{[name: string]: Function}>; /** @@ -302,1027 +300,6 @@ export class FeaturestoreOnlineServingServiceClient { ), }; - const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a - // an Operation object that allows for tracking of the operation, - // rather than holding a request open. - const lroOptions: GrpcClientOptions = { - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }; - if (opts.fallback === 'rest') { - lroOptions.protoJson = protoFilesRoot; - lroOptions.httpRules = [ - { - selector: 'google.cloud.location.Locations.GetLocation', - get: '/ui/{name=projects/*/locations/*}', - additional_bindings: [ - {get: '/v1beta1/{name=projects/*/locations/*}'}, - ], - }, - { - selector: 'google.cloud.location.Locations.ListLocations', - get: '/ui/{name=projects/*}/locations', - additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], - }, - { - selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', - post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', - body: '*', - additional_bindings: [ - { - post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', - }, - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', - }, - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', - }, - ], - }, - { - selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', - post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', - body: '*', - additional_bindings: [ - { - post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', - body: '*', - }, - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', - body: '*', - }, - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', - body: '*', - }, - ], - }, - { - selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', - post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', - body: '*', - additional_bindings: [ - { - post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', - }, - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', - }, - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', - }, - ], - }, - { - selector: 'google.longrunning.Operations.CancelOperation', - post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', - additional_bindings: [ - { - post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', - }, - ], - }, - { - selector: 'google.longrunning.Operations.DeleteOperation', - delete: '/ui/{name=projects/*/locations/*/operations/*}', - additional_bindings: [ - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, - { - delete: - '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/studies/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, - { - delete: - '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - ], - }, - { - selector: 'google.longrunning.Operations.GetOperation', - get: '/ui/{name=projects/*/locations/*/operations/*}', - additional_bindings: [ - {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - ], - }, - { - selector: 'google.longrunning.Operations.ListOperations', - get: '/ui/{name=projects/*/locations/*}/operations', - additional_bindings: [ - {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, - {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', - }, - {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', - }, - {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, - { - get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', - }, - ], - }, - { - selector: 'google.longrunning.Operations.WaitOperation', - post: '/ui/{name=projects/*/locations/*/operations/*}:wait', - additional_bindings: [ - { - post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', - }, - {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', - }, - ], - }, - ]; - } - this.operationsClient = this._gaxModule - .lro(lroOptions) - .operationsClient(opts); - - this.descriptors.longrunning = {}; - // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( 'google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService', @@ -1957,183 +934,6 @@ export class FeaturestoreOnlineServingServiceClient { return this.locationsClient.listLocationsAsync(request, options); } - /** - * Gets the latest state of a long-running operation. Clients can use this - * method to poll the operation result at intervals as recommended by the API - * service. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error, ?Object)=} callback - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"}. - * @return {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"}. The promise has a method named - * "cancel" which cancels the ongoing API call. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * const name = ''; - * const [response] = await client.getOperation({name}); - * // doThingsWith(response) - * ``` - */ - getOperation( - request: protos.google.longrunning.GetOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.longrunning.Operation, - protos.google.longrunning.GetOperationRequest, - {} | null | undefined - >, - callback?: Callback< - protos.google.longrunning.Operation, - protos.google.longrunning.GetOperationRequest, - {} | null | undefined - > - ): Promise<[protos.google.longrunning.Operation]> { - return this.operationsClient.getOperation(request, options, callback); - } - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. - * - * For-await-of syntax is used with the iterable to recursively get response element on-demand. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation collection. - * @param {string} request.filter - The standard list filter. - * @param {number=} request.pageSize - - * The maximum number of resources contained in the underlying API - * response. If page streaming is performed per-resource, this - * parameter does not affect the return value. If page streaming is - * performed per-page, this determines the maximum number of - * resources in a page. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * for await (const response of client.listOperationsAsync(request)); - * // doThingsWith(response) - * ``` - */ - listOperationsAsync( - request: protos.google.longrunning.ListOperationsRequest, - options?: gax.CallOptions - ): AsyncIterable { - return this.operationsClient.listOperationsAsync(request, options); - } - /** - * Starts asynchronous cancellation on a long-running operation. The server - * makes a best effort to cancel the operation, but success is not - * guaranteed. If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Clients can use - * {@link Operations.GetOperation} or - * other methods to check whether the cancellation succeeded or whether the - * operation completed despite cancellation. On successful cancellation, - * the operation is not deleted; instead, it becomes an operation with - * an {@link Operation.error} value with a {@link google.rpc.Status.code} of - * 1, corresponding to `Code.CANCELLED`. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource to be cancelled. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error)=} callback - * The function which will be called with the result of the API call. - * @return {Promise} - The promise which resolves when API call finishes. - * The promise has a method named "cancel" which cancels the ongoing API - * call. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * await client.cancelOperation({name: ''}); - * ``` - */ - cancelOperation( - request: protos.google.longrunning.CancelOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.CancelOperationRequest, - {} | undefined | null - >, - callback?: Callback< - protos.google.longrunning.CancelOperationRequest, - protos.google.protobuf.Empty, - {} | undefined | null - > - ): Promise { - return this.operationsClient.cancelOperation(request, options, callback); - } - - /** - * Deletes a long-running operation. This method indicates that the client is - * no longer interested in the operation result. It does not cancel the - * operation. If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource to be deleted. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error)=} callback - * The function which will be called with the result of the API call. - * @return {Promise} - The promise which resolves when API call finishes. - * The promise has a method named "cancel" which cancels the ongoing API - * call. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * await client.deleteOperation({name: ''}); - * ``` - */ - deleteOperation( - request: protos.google.longrunning.DeleteOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.DeleteOperationRequest, - {} | null | undefined - >, - callback?: Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.DeleteOperationRequest, - {} | null | undefined - > - ): Promise { - return this.operationsClient.deleteOperation(request, options, callback); - } - // -------------------- // -- Path templates -- // -------------------- @@ -4394,7 +3194,6 @@ export class FeaturestoreOnlineServingServiceClient { stub.close(); this.iamClient.close(); this.locationsClient.close(); - this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts index dce1a03e6cc..b8832431cf1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts @@ -3882,9 +3882,12 @@ export class FeaturestoreServiceClient { * The request object that will be sent. * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity} request.selectEntity * Select feature values to be deleted by specifying entities. + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} request.selectTimeRangeAndFeature + * Select feature values to be deleted by specifying time range and + * features. * @param {string} request.entityType - * Required. The resource name of the EntityType grouping the Features for - * which values are being deleted from. Format: + * Required. The resource name of the EntityType grouping the Features for which values + * are being deleted from. Format: * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json index ed36453b00f..1a399b184ac 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json @@ -1138,6 +1138,11 @@ "addContextChildren" ] }, + "RemoveContextChildren": { + "methods": [ + "removeContextChildren" + ] + }, "QueryContextLineageSubgraph": { "methods": [ "queryContextLineageSubgraph" @@ -1308,6 +1313,11 @@ "addContextChildren" ] }, + "RemoveContextChildren": { + "methods": [ + "removeContextChildren" + ] + }, "QueryContextLineageSubgraph": { "methods": [ "queryContextLineageSubgraph" diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts index 0322d5ff192..19087e74f7b 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts @@ -4163,6 +4163,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4170,6 +4173,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4283,6 +4288,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4290,6 +4298,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4351,6 +4361,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4358,6 +4371,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4418,6 +4433,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4425,6 +4443,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4542,6 +4562,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4549,6 +4572,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4614,6 +4639,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4621,6 +4649,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4685,6 +4715,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4692,6 +4725,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4809,6 +4844,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4816,6 +4854,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4877,6 +4917,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4884,6 +4927,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -4945,6 +4990,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -4952,6 +5000,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -5070,6 +5120,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -5077,6 +5130,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -5139,6 +5194,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -5146,6 +5204,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -5467,6 +5527,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -5474,6 +5537,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -5588,6 +5653,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -5595,6 +5663,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken @@ -5654,6 +5724,9 @@ export class JobServiceClient { * * `state` supports `=`, `!=` comparisons. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -5661,6 +5734,8 @@ export class JobServiceClient { * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * * `NOT display_name="my_job"` * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken diff --git a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts index b1194ef64db..5051851910d 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts @@ -1510,6 +1510,7 @@ export class MetadataServiceClient { 'purgeContexts', 'addContextArtifactsAndExecutions', 'addContextChildren', + 'removeContextChildren', 'queryContextLineageSubgraph', 'createExecution', 'getExecution', @@ -2527,6 +2528,110 @@ export class MetadataServiceClient { this.initialize(); return this.innerApiCalls.addContextChildren(request, options, callback); } + /** + * Remove a set of children contexts from a parent Context. If any of the + * child Contexts were NOT added to the parent Context, they are + * simply skipped. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.context + * Required. The resource name of the parent Context. + * + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * @param {string[]} request.childContexts + * The resource names of the child Contexts. + * @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 [RemoveContextChildrenResponse]{@link google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/metadata_service.remove_context_children.js + * region_tag:aiplatform_v1beta1_generated_MetadataService_RemoveContextChildren_async + */ + removeContextChildren( + request?: protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse, + ( + | protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest + | undefined + ), + {} | undefined + ] + >; + removeContextChildren( + request: protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse, + | protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest + | null + | undefined, + {} | null | undefined + > + ): void; + removeContextChildren( + request: protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse, + | protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest + | null + | undefined, + {} | null | undefined + > + ): void; + removeContextChildren( + request?: protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse, + | protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse, + | protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse, + ( + | protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenRequest + | 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'] = + this._gaxModule.routingHeader.fromParams({ + context: request.context ?? '', + }); + this.initialize(); + return this.innerApiCalls.removeContextChildren(request, options, callback); + } /** * Retrieves Artifacts and Executions within the specified Context, connected * by Event edges and returned as a LineageSubgraph. @@ -4942,6 +5047,13 @@ export class MetadataServiceClient { * logical operators (`AND` & `OR`). * * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @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. @@ -5076,6 +5188,13 @@ export class MetadataServiceClient { * logical operators (`AND` & `OR`). * * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -5158,6 +5277,13 @@ export class MetadataServiceClient { * logical operators (`AND` & `OR`). * * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -5243,6 +5369,13 @@ export class MetadataServiceClient { * logical operators (`AND` & `OR`). * * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @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. @@ -5381,6 +5514,13 @@ export class MetadataServiceClient { * logical operators (`AND` & `OR`). * * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -5467,6 +5607,13 @@ export class MetadataServiceClient { * logical operators (`AND` & `OR`). * * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -5547,6 +5694,13 @@ export class MetadataServiceClient { * Each of the above supported filters can be combined together using * logical operators (`AND` & `OR`). * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @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. @@ -5680,6 +5834,13 @@ export class MetadataServiceClient { * Each of the above supported filters can be combined together using * logical operators (`AND` & `OR`). * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -5761,6 +5922,13 @@ export class MetadataServiceClient { * Each of the above supported filters can be combined together using * logical operators (`AND` & `OR`). * For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * @param {string} request.orderBy + * How the list of messages is ordered. Specify the values to order by and an + * ordering operation. The default sorting order is ascending. To specify + * descending order for a field, users append a " desc" suffix; for example: + * "foo desc, bar". + * Subfields are specified with a `.` character, such as foo.bar. + * see https://google.aip.dev/132#ordering for more details. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client_config.json index 39313fa9e86..feb78d10759 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client_config.json @@ -107,6 +107,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "RemoveContextChildren": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "QueryContextLineageSubgraph": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts index 9720b0655f8..87f21a5dbf4 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts @@ -2437,6 +2437,9 @@ export class PipelineServiceClient { * * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -2559,6 +2562,9 @@ export class PipelineServiceClient { * * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -2629,6 +2635,9 @@ export class PipelineServiceClient { * * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence * * Some examples of using the filter are: * @@ -2744,6 +2753,8 @@ export class PipelineServiceClient { * * `update_time` * * `end_time` * * `start_time` + * @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. @@ -2895,6 +2906,8 @@ export class PipelineServiceClient { * * `update_time` * * `end_time` * * `start_time` + * @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} @@ -2994,6 +3007,8 @@ export class PipelineServiceClient { * * `update_time` * * `end_time` * * `start_time` + * @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} diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts index 5637e71d155..bd10d22f02a 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts @@ -23,7 +23,6 @@ import type { CallOptions, Descriptors, ClientOptions, - GrpcClientOptions, IamClient, IamProtos, LocationsClient, @@ -65,7 +64,6 @@ export class PredictionServiceClient { iamClient: IamClient; locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; - operationsClient: gax.OperationsClient; predictionServiceStub?: Promise<{[name: string]: Function}>; /** @@ -292,1027 +290,6 @@ export class PredictionServiceClient { ), }; - const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a - // an Operation object that allows for tracking of the operation, - // rather than holding a request open. - const lroOptions: GrpcClientOptions = { - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }; - if (opts.fallback === 'rest') { - lroOptions.protoJson = protoFilesRoot; - lroOptions.httpRules = [ - { - selector: 'google.cloud.location.Locations.GetLocation', - get: '/ui/{name=projects/*/locations/*}', - additional_bindings: [ - {get: '/v1beta1/{name=projects/*/locations/*}'}, - ], - }, - { - selector: 'google.cloud.location.Locations.ListLocations', - get: '/ui/{name=projects/*}/locations', - additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], - }, - { - selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', - post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', - body: '*', - additional_bindings: [ - { - post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', - }, - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', - }, - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', - }, - ], - }, - { - selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', - post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', - body: '*', - additional_bindings: [ - { - post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', - body: '*', - }, - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', - body: '*', - }, - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', - body: '*', - }, - ], - }, - { - selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', - post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', - body: '*', - additional_bindings: [ - { - post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', - }, - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', - }, - { - post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', - }, - ], - }, - { - selector: 'google.longrunning.Operations.CancelOperation', - post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', - additional_bindings: [ - { - post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', - }, - ], - }, - { - selector: 'google.longrunning.Operations.DeleteOperation', - delete: '/ui/{name=projects/*/locations/*/operations/*}', - additional_bindings: [ - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, - { - delete: - '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/studies/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - delete: - '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, - { - delete: - '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - delete: - '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - ], - }, - { - selector: 'google.longrunning.Operations.GetOperation', - get: '/ui/{name=projects/*/locations/*/operations/*}', - additional_bindings: [ - {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, - { - get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', - }, - ], - }, - { - selector: 'google.longrunning.Operations.ListOperations', - get: '/ui/{name=projects/*/locations/*}/operations', - additional_bindings: [ - {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, - {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', - }, - {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, - { - get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', - }, - { - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', - }, - {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', - }, - {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, - { - get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', - }, - { - get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', - }, - ], - }, - { - selector: 'google.longrunning.Operations.WaitOperation', - post: '/ui/{name=projects/*/locations/*/operations/*}:wait', - additional_bindings: [ - { - post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', - }, - { - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', - }, - {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', - }, - { - post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', - }, - ], - }, - ]; - } - this.operationsClient = this._gaxModule - .lro(lroOptions) - .operationsClient(opts); - - this.descriptors.longrunning = {}; - // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( 'google.cloud.aiplatform.v1beta1.PredictionService', @@ -2007,183 +984,6 @@ export class PredictionServiceClient { return this.locationsClient.listLocationsAsync(request, options); } - /** - * Gets the latest state of a long-running operation. Clients can use this - * method to poll the operation result at intervals as recommended by the API - * service. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error, ?Object)=} callback - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"}. - * @return {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"}. The promise has a method named - * "cancel" which cancels the ongoing API call. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * const name = ''; - * const [response] = await client.getOperation({name}); - * // doThingsWith(response) - * ``` - */ - getOperation( - request: protos.google.longrunning.GetOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.longrunning.Operation, - protos.google.longrunning.GetOperationRequest, - {} | null | undefined - >, - callback?: Callback< - protos.google.longrunning.Operation, - protos.google.longrunning.GetOperationRequest, - {} | null | undefined - > - ): Promise<[protos.google.longrunning.Operation]> { - return this.operationsClient.getOperation(request, options, callback); - } - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. - * - * For-await-of syntax is used with the iterable to recursively get response element on-demand. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation collection. - * @param {string} request.filter - The standard list filter. - * @param {number=} request.pageSize - - * The maximum number of resources contained in the underlying API - * response. If page streaming is performed per-resource, this - * parameter does not affect the return value. If page streaming is - * performed per-page, this determines the maximum number of - * resources in a page. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * for await (const response of client.listOperationsAsync(request)); - * // doThingsWith(response) - * ``` - */ - listOperationsAsync( - request: protos.google.longrunning.ListOperationsRequest, - options?: gax.CallOptions - ): AsyncIterable { - return this.operationsClient.listOperationsAsync(request, options); - } - /** - * Starts asynchronous cancellation on a long-running operation. The server - * makes a best effort to cancel the operation, but success is not - * guaranteed. If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Clients can use - * {@link Operations.GetOperation} or - * other methods to check whether the cancellation succeeded or whether the - * operation completed despite cancellation. On successful cancellation, - * the operation is not deleted; instead, it becomes an operation with - * an {@link Operation.error} value with a {@link google.rpc.Status.code} of - * 1, corresponding to `Code.CANCELLED`. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource to be cancelled. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error)=} callback - * The function which will be called with the result of the API call. - * @return {Promise} - The promise which resolves when API call finishes. - * The promise has a method named "cancel" which cancels the ongoing API - * call. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * await client.cancelOperation({name: ''}); - * ``` - */ - cancelOperation( - request: protos.google.longrunning.CancelOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.CancelOperationRequest, - {} | undefined | null - >, - callback?: Callback< - protos.google.longrunning.CancelOperationRequest, - protos.google.protobuf.Empty, - {} | undefined | null - > - ): Promise { - return this.operationsClient.cancelOperation(request, options, callback); - } - - /** - * Deletes a long-running operation. This method indicates that the client is - * no longer interested in the operation result. It does not cancel the - * operation. If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource to be deleted. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error)=} callback - * The function which will be called with the result of the API call. - * @return {Promise} - The promise which resolves when API call finishes. - * The promise has a method named "cancel" which cancels the ongoing API - * call. - * - * @example - * ``` - * const client = longrunning.operationsClient(); - * await client.deleteOperation({name: ''}); - * ``` - */ - deleteOperation( - request: protos.google.longrunning.DeleteOperationRequest, - options?: - | gax.CallOptions - | Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.DeleteOperationRequest, - {} | null | undefined - >, - callback?: Callback< - protos.google.protobuf.Empty, - protos.google.longrunning.DeleteOperationRequest, - {} | null | undefined - > - ): Promise { - return this.operationsClient.deleteOperation(request, options, callback); - } - // -------------------- // -- Path templates -- // -------------------- @@ -4444,7 +3244,6 @@ export class PredictionServiceClient { stub.close(); this.iamClient.close(); this.locationsClient.close(); - this.operationsClient.close(); }); } return Promise.resolve(); 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 e0419eaffc9..bdadeeecf8d 100644 --- a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts @@ -275,7 +275,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDatasetRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -303,7 +306,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDatasetRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -347,7 +353,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDatasetRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -375,7 +384,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDatasetRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -394,10 +406,10 @@ describe('v1.DatasetServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateDatasetRequest() ); request.dataset ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDatasetRequest', [ - 'dataset', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateDatasetRequest', + ['dataset', 'name'] + ); request.dataset.name = defaultValue1; const expectedHeaderRequestParams = `dataset.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -426,10 +438,10 @@ describe('v1.DatasetServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateDatasetRequest() ); request.dataset ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDatasetRequest', [ - 'dataset', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateDatasetRequest', + ['dataset', 'name'] + ); request.dataset.name = defaultValue1; const expectedHeaderRequestParams = `dataset.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -474,10 +486,10 @@ describe('v1.DatasetServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateDatasetRequest() ); request.dataset ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDatasetRequest', [ - 'dataset', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateDatasetRequest', + ['dataset', 'name'] + ); request.dataset.name = defaultValue1; const expectedHeaderRequestParams = `dataset.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -506,10 +518,10 @@ describe('v1.DatasetServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateDatasetRequest() ); request.dataset ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDatasetRequest', [ - 'dataset', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateDatasetRequest', + ['dataset', 'name'] + ); request.dataset.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -527,9 +539,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetAnnotationSpecRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAnnotationSpecRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetAnnotationSpecRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -557,9 +570,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetAnnotationSpecRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAnnotationSpecRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetAnnotationSpecRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -603,9 +617,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetAnnotationSpecRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAnnotationSpecRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetAnnotationSpecRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -633,9 +648,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetAnnotationSpecRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAnnotationSpecRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetAnnotationSpecRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -653,9 +669,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDatasetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateDatasetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -685,9 +702,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDatasetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateDatasetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -738,9 +756,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDatasetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateDatasetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -768,9 +787,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDatasetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateDatasetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -843,9 +863,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDatasetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -875,9 +896,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDatasetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -928,9 +950,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDatasetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -958,9 +981,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDatasetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1033,7 +1057,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ImportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ImportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1062,7 +1089,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ImportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ImportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1113,7 +1143,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ImportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ImportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1141,7 +1174,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ImportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ImportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1211,7 +1247,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1240,7 +1279,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1291,7 +1333,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1319,7 +1364,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1389,9 +1437,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1421,9 +1470,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1469,9 +1519,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1499,9 +1550,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1552,9 +1604,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1602,9 +1655,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1644,9 +1698,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1685,9 +1740,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1717,9 +1773,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1765,9 +1822,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1795,9 +1853,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1848,9 +1907,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1896,9 +1956,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1938,9 +1999,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1979,9 +2041,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2017,9 +2080,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2071,9 +2135,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2101,9 +2166,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2160,9 +2226,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2208,9 +2275,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2256,9 +2324,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2297,9 +2366,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2335,9 +2405,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2389,9 +2460,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2419,9 +2491,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2478,9 +2551,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2526,9 +2600,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2574,9 +2649,10 @@ describe('v1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts index 1e9a83d6bf3..00eb7e21ce1 100644 --- a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts @@ -275,7 +275,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDatasetRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -303,7 +306,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDatasetRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -347,7 +353,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDatasetRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -375,7 +384,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDatasetRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -394,10 +406,10 @@ describe('v1beta1.DatasetServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest() ); request.dataset ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDatasetRequest', [ - 'dataset', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest', + ['dataset', 'name'] + ); request.dataset.name = defaultValue1; const expectedHeaderRequestParams = `dataset.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -426,10 +438,10 @@ describe('v1beta1.DatasetServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest() ); request.dataset ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDatasetRequest', [ - 'dataset', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest', + ['dataset', 'name'] + ); request.dataset.name = defaultValue1; const expectedHeaderRequestParams = `dataset.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -474,10 +486,10 @@ describe('v1beta1.DatasetServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest() ); request.dataset ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDatasetRequest', [ - 'dataset', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest', + ['dataset', 'name'] + ); request.dataset.name = defaultValue1; const expectedHeaderRequestParams = `dataset.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -506,10 +518,10 @@ describe('v1beta1.DatasetServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest() ); request.dataset ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDatasetRequest', [ - 'dataset', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest', + ['dataset', 'name'] + ); request.dataset.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -527,9 +539,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAnnotationSpecRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -557,9 +570,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAnnotationSpecRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -603,9 +617,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAnnotationSpecRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -633,9 +648,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAnnotationSpecRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -653,9 +669,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDatasetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateDatasetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -685,9 +702,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDatasetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateDatasetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -738,9 +756,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDatasetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateDatasetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -768,9 +787,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDatasetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateDatasetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -843,9 +863,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDatasetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -875,9 +896,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDatasetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -928,9 +950,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDatasetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -958,9 +981,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDatasetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1033,7 +1057,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ImportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ImportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1062,7 +1089,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ImportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ImportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1113,7 +1143,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ImportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ImportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1141,7 +1174,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ImportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ImportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1211,7 +1247,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1240,7 +1279,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1291,7 +1333,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1319,7 +1364,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExportDataRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportDataRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExportDataRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1389,9 +1437,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1427,9 +1476,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1481,9 +1531,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1511,9 +1562,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1570,9 +1622,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1620,9 +1673,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1668,9 +1722,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDatasetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDatasetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDatasetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1709,9 +1764,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1747,9 +1803,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1801,9 +1858,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1831,9 +1889,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1890,9 +1949,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1938,9 +1998,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1986,9 +2047,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataItemsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataItemsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataItemsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2028,9 +2090,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2066,9 +2129,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2120,9 +2184,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2150,9 +2215,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2210,9 +2276,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2259,9 +2326,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2308,9 +2376,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSavedQueriesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2350,9 +2419,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2388,9 +2458,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2442,9 +2513,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2472,9 +2544,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2532,9 +2605,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2581,9 +2655,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2630,9 +2705,10 @@ describe('v1beta1.DatasetServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAnnotationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_deployment_resource_pool_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_deployment_resource_pool_service_v1beta1.ts index 70497bd149c..8174c72ac6c 100644 --- a/packages/google-cloud-aiplatform/test/gapic_deployment_resource_pool_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_deployment_resource_pool_service_v1beta1.ts @@ -302,7 +302,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDeploymentResourcePoolRequest', + '.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest', ['name'] ); request.name = defaultValue1; @@ -337,7 +337,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDeploymentResourcePoolRequest', + '.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest', ['name'] ); request.name = defaultValue1; @@ -387,7 +387,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDeploymentResourcePoolRequest', + '.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest', ['name'] ); request.name = defaultValue1; @@ -424,7 +424,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDeploymentResourcePoolRequest', + '.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest', ['name'] ); request.name = defaultValue1; @@ -451,7 +451,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDeploymentResourcePoolRequest', + '.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest', ['parent'] ); request.parent = defaultValue1; @@ -487,7 +487,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDeploymentResourcePoolRequest', + '.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest', ['parent'] ); request.parent = defaultValue1; @@ -544,7 +544,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDeploymentResourcePoolRequest', + '.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest', ['parent'] ); request.parent = defaultValue1; @@ -581,7 +581,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDeploymentResourcePoolRequest', + '.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest', ['parent'] ); request.parent = defaultValue1; @@ -667,7 +667,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDeploymentResourcePoolRequest', + '.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest', ['name'] ); request.name = defaultValue1; @@ -703,7 +703,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDeploymentResourcePoolRequest', + '.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest', ['name'] ); request.name = defaultValue1; @@ -760,7 +760,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDeploymentResourcePoolRequest', + '.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest', ['name'] ); request.name = defaultValue1; @@ -797,7 +797,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDeploymentResourcePoolRequest', + '.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest', ['name'] ); request.name = defaultValue1; @@ -883,7 +883,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDeploymentResourcePoolsRequest', + '.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest', ['parent'] ); request.parent = defaultValue1; @@ -926,7 +926,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDeploymentResourcePoolsRequest', + '.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest', ['parent'] ); request.parent = defaultValue1; @@ -986,7 +986,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDeploymentResourcePoolsRequest', + '.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest', ['parent'] ); request.parent = defaultValue1; @@ -1023,7 +1023,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDeploymentResourcePoolsRequest', + '.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest', ['parent'] ); request.parent = defaultValue1; @@ -1095,7 +1095,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDeploymentResourcePoolsRequest', + '.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest', ['parent'] ); request.parent = defaultValue1; @@ -1156,7 +1156,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDeploymentResourcePoolsRequest', + '.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest', ['parent'] ); request.parent = defaultValue1; @@ -1213,7 +1213,7 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDeploymentResourcePoolsRequest', + '.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest', ['parent'] ); request.parent = defaultValue1; @@ -1262,9 +1262,10 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('QueryDeployedModelsRequest', [ - 'deploymentResourcePool', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest', + ['deploymentResourcePool'] + ); request.deploymentResourcePool = defaultValue1; const expectedHeaderRequestParams = `deployment_resource_pool=${defaultValue1}`; const expectedResponse = [ @@ -1304,9 +1305,10 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('QueryDeployedModelsRequest', [ - 'deploymentResourcePool', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest', + ['deploymentResourcePool'] + ); request.deploymentResourcePool = defaultValue1; const expectedHeaderRequestParams = `deployment_resource_pool=${defaultValue1}`; const expectedResponse = [ @@ -1363,9 +1365,10 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('QueryDeployedModelsRequest', [ - 'deploymentResourcePool', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest', + ['deploymentResourcePool'] + ); request.deploymentResourcePool = defaultValue1; const expectedHeaderRequestParams = `deployment_resource_pool=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1396,9 +1399,10 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('QueryDeployedModelsRequest', [ - 'deploymentResourcePool', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest', + ['deploymentResourcePool'] + ); request.deploymentResourcePool = defaultValue1; const expectedHeaderRequestParams = `deployment_resource_pool=${defaultValue1}`; const expectedResponse = [ @@ -1459,9 +1463,10 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('QueryDeployedModelsRequest', [ - 'deploymentResourcePool', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest', + ['deploymentResourcePool'] + ); request.deploymentResourcePool = defaultValue1; const expectedHeaderRequestParams = `deployment_resource_pool=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1511,9 +1516,10 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('QueryDeployedModelsRequest', [ - 'deploymentResourcePool', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest', + ['deploymentResourcePool'] + ); request.deploymentResourcePool = defaultValue1; const expectedHeaderRequestParams = `deployment_resource_pool=${defaultValue1}`; const expectedResponse = [ @@ -1563,9 +1569,10 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('QueryDeployedModelsRequest', [ - 'deploymentResourcePool', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest', + ['deploymentResourcePool'] + ); request.deploymentResourcePool = defaultValue1; const expectedHeaderRequestParams = `deployment_resource_pool=${defaultValue1}`; const expectedError = new Error('expected'); 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 b53617abb35..9f851ac20ee 100644 --- a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts @@ -275,7 +275,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEndpointRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -303,7 +306,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEndpointRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -347,7 +353,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEndpointRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -375,7 +384,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEndpointRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -394,10 +406,10 @@ describe('v1.EndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateEndpointRequest() ); request.endpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEndpointRequest', [ - 'endpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateEndpointRequest', + ['endpoint', 'name'] + ); request.endpoint.name = defaultValue1; const expectedHeaderRequestParams = `endpoint.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -426,10 +438,10 @@ describe('v1.EndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateEndpointRequest() ); request.endpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEndpointRequest', [ - 'endpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateEndpointRequest', + ['endpoint', 'name'] + ); request.endpoint.name = defaultValue1; const expectedHeaderRequestParams = `endpoint.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -474,10 +486,10 @@ describe('v1.EndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateEndpointRequest() ); request.endpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEndpointRequest', [ - 'endpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateEndpointRequest', + ['endpoint', 'name'] + ); request.endpoint.name = defaultValue1; const expectedHeaderRequestParams = `endpoint.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -506,10 +518,10 @@ describe('v1.EndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateEndpointRequest() ); request.endpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEndpointRequest', [ - 'endpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateEndpointRequest', + ['endpoint', 'name'] + ); request.endpoint.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -527,9 +539,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -559,9 +572,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -612,9 +626,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -642,9 +657,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -717,9 +733,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -749,9 +766,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -802,9 +820,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -832,9 +851,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -907,9 +927,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -938,9 +959,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -991,9 +1013,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1021,9 +1044,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1093,9 +1117,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UndeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UndeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1125,9 +1150,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UndeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UndeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1178,9 +1204,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UndeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UndeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1208,9 +1235,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UndeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UndeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1283,9 +1311,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1315,9 +1344,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1363,9 +1393,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1393,9 +1424,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1446,9 +1478,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1494,9 +1527,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1536,9 +1570,10 @@ describe('v1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts index 35494492b06..c22cd7fac31 100644 --- a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts @@ -275,7 +275,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEndpointRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -303,7 +306,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEndpointRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -347,7 +353,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEndpointRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -375,7 +384,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEndpointRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -394,10 +406,10 @@ describe('v1beta1.EndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest() ); request.endpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEndpointRequest', [ - 'endpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest', + ['endpoint', 'name'] + ); request.endpoint.name = defaultValue1; const expectedHeaderRequestParams = `endpoint.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -426,10 +438,10 @@ describe('v1beta1.EndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest() ); request.endpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEndpointRequest', [ - 'endpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest', + ['endpoint', 'name'] + ); request.endpoint.name = defaultValue1; const expectedHeaderRequestParams = `endpoint.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -474,10 +486,10 @@ describe('v1beta1.EndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest() ); request.endpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEndpointRequest', [ - 'endpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest', + ['endpoint', 'name'] + ); request.endpoint.name = defaultValue1; const expectedHeaderRequestParams = `endpoint.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -506,10 +518,10 @@ describe('v1beta1.EndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest() ); request.endpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEndpointRequest', [ - 'endpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest', + ['endpoint', 'name'] + ); request.endpoint.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -527,9 +539,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -559,9 +572,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -612,9 +626,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -642,9 +657,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -717,9 +733,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -749,9 +766,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -802,9 +820,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -832,9 +851,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -907,9 +927,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -938,9 +959,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -991,9 +1013,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1021,9 +1044,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1093,9 +1117,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UndeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UndeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1125,9 +1150,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UndeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UndeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1178,9 +1204,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UndeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UndeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1208,9 +1235,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UndeployModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployModelRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UndeployModelRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1283,9 +1311,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1321,9 +1350,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1375,9 +1405,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1405,9 +1436,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1464,9 +1496,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1512,9 +1545,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1560,9 +1594,10 @@ describe('v1beta1.EndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts index 2cb688983d7..cdccbf6e675 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts @@ -25,12 +25,7 @@ import * as featurestoreonlineservingserviceModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - operationsProtos, - IamProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, IamProtos, LocationProtos} from 'google-gax'; // Dynamically loaded proto JSON is needed to get the type information // to fill in default values for request objects @@ -257,9 +252,10 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ReadFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ReadFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -290,9 +286,10 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ReadFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ReadFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -339,9 +336,10 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ReadFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ReadFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -372,9 +370,10 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ReadFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ReadFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -396,7 +395,7 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { new protos.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'StreamingReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest', ['entityType'] ); request.entityType = defaultValue1; @@ -445,7 +444,7 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { new protos.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'StreamingReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest', ['entityType'] ); request.entityType = defaultValue1; @@ -493,7 +492,7 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { new protos.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'StreamingReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest', ['entityType'] ); request.entityType = defaultValue1; @@ -1080,344 +1079,6 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { ); }); }); - describe('getOperation', () => { - it('invokes getOperation without error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const response = await client.getOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.getOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes getOperation without error using callback', async () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - client.operationsClient.getOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.getOperation( - request, - undefined, - ( - err?: Error | null, - result?: operationsProtos.google.longrunning.Operation | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - it('invokes getOperation with error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.getOperation(request); - }, expectedError); - assert( - (client.operationsClient.getOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('cancelOperation', () => { - it('invokes cancelOperation without error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.cancelOperation = - stubSimpleCall(expectedResponse); - const response = await client.cancelOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes cancelOperation without error using callback', async () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.cancelOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.cancelOperation( - request, - undefined, - ( - err?: Error | null, - result?: protos.google.protobuf.Empty | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); - }); - it('invokes cancelOperation with error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.cancelOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.cancelOperation(request); - }, expectedError); - assert( - (client.operationsClient.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('deleteOperation', () => { - it('invokes deleteOperation without error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.deleteOperation = - stubSimpleCall(expectedResponse); - const response = await client.deleteOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.deleteOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes deleteOperation without error using callback', async () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.deleteOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.deleteOperation( - request, - undefined, - ( - err?: Error | null, - result?: protos.google.protobuf.Empty | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); - }); - it('invokes deleteOperation with error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.deleteOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.deleteOperation(request); - }, expectedError); - assert( - (client.operationsClient.deleteOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('listOperationsAsync', () => { - it('uses async iteration with listOperations without error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsRequest() - ); - const expectedResponse = [ - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - ]; - client.operationsClient.descriptor.listOperations.asyncIterate = - stubAsyncIterationCall(expectedResponse); - const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = - []; - const iterable = client.operationsClient.listOperationsAsync(request); - for await (const resource of iterable) { - responses.push(resource!); - } - assert.deepStrictEqual(responses, expectedResponse); - assert.deepStrictEqual( - ( - client.operationsClient.descriptor.listOperations - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - it('uses async iteration with listOperations with error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.descriptor.listOperations.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.operationsClient.listOperationsAsync(request); - await assert.rejects(async () => { - const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = - []; - for await (const resource of iterable) { - responses.push(resource!); - } - }); - assert.deepStrictEqual( - ( - client.operationsClient.descriptor.listOperations - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - }); describe('Path templates', () => { describe('annotation', () => { diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1beta1.ts index f54d016671c..ee0038b5d5b 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1beta1.ts @@ -25,12 +25,7 @@ import * as featurestoreonlineservingserviceModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - operationsProtos, - IamProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, IamProtos, LocationProtos} from 'google-gax'; // Dynamically loaded proto JSON is needed to get the type information // to fill in default values for request objects @@ -257,9 +252,10 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ReadFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -290,9 +286,10 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ReadFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -339,9 +336,10 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ReadFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -372,9 +370,10 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ReadFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -395,9 +394,10 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('WriteFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -429,9 +429,10 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('WriteFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -478,9 +479,10 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('WriteFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -511,9 +513,10 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('WriteFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -535,7 +538,7 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'StreamingReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest', ['entityType'] ); request.entityType = defaultValue1; @@ -584,7 +587,7 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'StreamingReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest', ['entityType'] ); request.entityType = defaultValue1; @@ -632,7 +635,7 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'StreamingReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest', ['entityType'] ); request.entityType = defaultValue1; @@ -1219,344 +1222,6 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { ); }); }); - describe('getOperation', () => { - it('invokes getOperation without error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const response = await client.getOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.getOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes getOperation without error using callback', async () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - client.operationsClient.getOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.getOperation( - request, - undefined, - ( - err?: Error | null, - result?: operationsProtos.google.longrunning.Operation | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - it('invokes getOperation with error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.getOperation(request); - }, expectedError); - assert( - (client.operationsClient.getOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('cancelOperation', () => { - it('invokes cancelOperation without error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.cancelOperation = - stubSimpleCall(expectedResponse); - const response = await client.cancelOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes cancelOperation without error using callback', async () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.cancelOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.cancelOperation( - request, - undefined, - ( - err?: Error | null, - result?: protos.google.protobuf.Empty | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); - }); - it('invokes cancelOperation with error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.cancelOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.cancelOperation(request); - }, expectedError); - assert( - (client.operationsClient.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('deleteOperation', () => { - it('invokes deleteOperation without error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.deleteOperation = - stubSimpleCall(expectedResponse); - const response = await client.deleteOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.deleteOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes deleteOperation without error using callback', async () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.deleteOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.deleteOperation( - request, - undefined, - ( - err?: Error | null, - result?: protos.google.protobuf.Empty | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); - }); - it('invokes deleteOperation with error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.deleteOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.deleteOperation(request); - }, expectedError); - assert( - (client.operationsClient.deleteOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('listOperationsAsync', () => { - it('uses async iteration with listOperations without error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsRequest() - ); - const expectedResponse = [ - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - ]; - client.operationsClient.descriptor.listOperations.asyncIterate = - stubAsyncIterationCall(expectedResponse); - const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = - []; - const iterable = client.operationsClient.listOperationsAsync(request); - for await (const resource of iterable) { - responses.push(resource!); - } - assert.deepStrictEqual(responses, expectedResponse); - assert.deepStrictEqual( - ( - client.operationsClient.descriptor.listOperations - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - it('uses async iteration with listOperations with error', async () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.descriptor.listOperations.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.operationsClient.listOperationsAsync(request); - await assert.rejects(async () => { - const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = - []; - for await (const resource of iterable) { - responses.push(resource!); - } - }); - assert.deepStrictEqual( - ( - client.operationsClient.descriptor.listOperations - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - }); describe('Path templates', () => { describe('annotation', () => { diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts index 052b391de4d..d926d1e5ab0 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts @@ -290,9 +290,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -322,9 +323,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -370,9 +372,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -402,9 +405,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -424,9 +428,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -456,9 +461,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -504,9 +510,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -536,9 +543,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -559,10 +567,10 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateEntityTypeRequest() ); request.entityType ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEntityTypeRequest', [ - 'entityType', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateEntityTypeRequest', + ['entityType', 'name'] + ); request.entityType.name = defaultValue1; const expectedHeaderRequestParams = `entity_type.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -593,10 +601,10 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateEntityTypeRequest() ); request.entityType ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEntityTypeRequest', [ - 'entityType', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateEntityTypeRequest', + ['entityType', 'name'] + ); request.entityType.name = defaultValue1; const expectedHeaderRequestParams = `entity_type.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -643,10 +651,10 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateEntityTypeRequest() ); request.entityType ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEntityTypeRequest', [ - 'entityType', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateEntityTypeRequest', + ['entityType', 'name'] + ); request.entityType.name = defaultValue1; const expectedHeaderRequestParams = `entity_type.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -677,10 +685,10 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateEntityTypeRequest() ); request.entityType ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEntityTypeRequest', [ - 'entityType', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateEntityTypeRequest', + ['entityType', 'name'] + ); request.entityType.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -700,7 +708,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeatureRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -730,7 +741,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeatureRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -776,7 +790,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeatureRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -806,7 +823,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeatureRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -827,10 +847,10 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateFeatureRequest() ); request.feature ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeatureRequest', [ - 'feature', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureRequest', + ['feature', 'name'] + ); request.feature.name = defaultValue1; const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -861,10 +881,10 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateFeatureRequest() ); request.feature ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeatureRequest', [ - 'feature', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureRequest', + ['feature', 'name'] + ); request.feature.name = defaultValue1; const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -911,10 +931,10 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateFeatureRequest() ); request.feature ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeatureRequest', [ - 'feature', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureRequest', + ['feature', 'name'] + ); request.feature.name = defaultValue1; const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -945,10 +965,10 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateFeatureRequest() ); request.feature ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeatureRequest', [ - 'feature', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureRequest', + ['feature', 'name'] + ); request.feature.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -968,9 +988,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeaturestoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeaturestoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1002,9 +1023,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeaturestoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeaturestoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1057,9 +1079,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeaturestoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeaturestoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1089,9 +1112,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeaturestoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeaturestoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1171,10 +1195,10 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest() ); request.featurestore ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeaturestoreRequest', [ - 'featurestore', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest', + ['featurestore', 'name'] + ); request.featurestore.name = defaultValue1; const expectedHeaderRequestParams = `featurestore.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1207,10 +1231,10 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest() ); request.featurestore ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeaturestoreRequest', [ - 'featurestore', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest', + ['featurestore', 'name'] + ); request.featurestore.name = defaultValue1; const expectedHeaderRequestParams = `featurestore.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1264,10 +1288,10 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest() ); request.featurestore ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeaturestoreRequest', [ - 'featurestore', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest', + ['featurestore', 'name'] + ); request.featurestore.name = defaultValue1; const expectedHeaderRequestParams = `featurestore.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1298,10 +1322,10 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest() ); request.featurestore ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeaturestoreRequest', [ - 'featurestore', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest', + ['featurestore', 'name'] + ); request.featurestore.name = defaultValue1; const expectedHeaderRequestParams = `featurestore.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1380,9 +1404,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1414,9 +1439,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1469,9 +1495,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1501,9 +1528,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1582,9 +1610,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEntityTypeRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateEntityTypeRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1616,9 +1645,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEntityTypeRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateEntityTypeRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1671,9 +1701,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEntityTypeRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateEntityTypeRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1703,9 +1734,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEntityTypeRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateEntityTypeRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1784,9 +1816,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1818,9 +1851,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1873,9 +1907,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1905,9 +1940,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1986,9 +2022,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeatureRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2020,9 +2057,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeatureRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2075,9 +2113,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeatureRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2107,9 +2146,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeatureRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2188,9 +2228,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchCreateFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2222,9 +2263,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchCreateFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2277,9 +2319,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchCreateFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2309,9 +2352,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchCreateFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2390,9 +2434,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeatureRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2424,9 +2469,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeatureRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2479,9 +2525,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeatureRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2511,9 +2558,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeatureRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2592,9 +2640,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ImportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ImportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2626,9 +2675,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ImportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ImportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2681,9 +2731,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ImportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ImportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2713,9 +2764,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ImportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ImportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2795,7 +2847,7 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest', ['featurestore'] ); request.featurestore = defaultValue1; @@ -2830,7 +2882,7 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest', ['featurestore'] ); request.featurestore = defaultValue1; @@ -2886,7 +2938,7 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest', ['featurestore'] ); request.featurestore = defaultValue1; @@ -2922,7 +2974,7 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest', ['featurestore'] ); request.featurestore = defaultValue1; @@ -3003,9 +3055,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3037,9 +3090,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3092,9 +3146,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3124,9 +3179,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3205,9 +3261,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3245,9 +3302,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3301,9 +3359,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3333,9 +3392,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3394,9 +3454,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3444,9 +3505,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3494,9 +3556,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3537,9 +3600,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3577,9 +3641,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3633,9 +3698,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3665,9 +3731,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3726,9 +3793,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3776,9 +3844,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3826,9 +3895,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3869,9 +3939,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3903,9 +3974,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3953,9 +4025,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3985,9 +4058,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4040,9 +4114,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4092,9 +4167,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4136,9 +4212,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4179,9 +4256,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedResponse = [ @@ -4213,9 +4291,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedResponse = [ @@ -4263,9 +4342,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4295,9 +4375,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedResponse = [ @@ -4350,9 +4431,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4400,9 +4482,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedResponse = [ @@ -4444,9 +4527,10 @@ describe('v1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts index 055fbb24435..df5a9799f79 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts @@ -284,9 +284,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -315,9 +316,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -362,9 +364,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -393,9 +396,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -414,9 +418,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -445,9 +450,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -492,9 +498,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -523,9 +530,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('GetEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -545,10 +553,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest() ); request.entityType ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEntityTypeRequest', [ - 'entityType', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest', + ['entityType', 'name'] + ); request.entityType.name = defaultValue1; const expectedHeaderRequestParams = `entity_type.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -578,10 +586,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest() ); request.entityType ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEntityTypeRequest', [ - 'entityType', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest', + ['entityType', 'name'] + ); request.entityType.name = defaultValue1; const expectedHeaderRequestParams = `entity_type.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -627,10 +635,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest() ); request.entityType ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEntityTypeRequest', [ - 'entityType', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest', + ['entityType', 'name'] + ); request.entityType.name = defaultValue1; const expectedHeaderRequestParams = `entity_type.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -660,10 +668,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest() ); request.entityType ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateEntityTypeRequest', [ - 'entityType', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest', + ['entityType', 'name'] + ); request.entityType.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -682,7 +690,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeatureRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -711,7 +722,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeatureRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -756,7 +770,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeatureRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -785,7 +802,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('GetFeatureRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -805,10 +825,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest() ); request.feature ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeatureRequest', [ - 'feature', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest', + ['feature', 'name'] + ); request.feature.name = defaultValue1; const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -838,10 +858,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest() ); request.feature ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeatureRequest', [ - 'feature', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest', + ['feature', 'name'] + ); request.feature.name = defaultValue1; const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -887,10 +907,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest() ); request.feature ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeatureRequest', [ - 'feature', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest', + ['feature', 'name'] + ); request.feature.name = defaultValue1; const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -920,10 +940,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest() ); request.feature ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeatureRequest', [ - 'feature', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest', + ['feature', 'name'] + ); request.feature.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -942,9 +962,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeaturestoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -975,9 +996,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeaturestoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1029,9 +1051,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeaturestoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1060,9 +1083,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeaturestoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1139,10 +1163,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest() ); request.featurestore ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeaturestoreRequest', [ - 'featurestore', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest', + ['featurestore', 'name'] + ); request.featurestore.name = defaultValue1; const expectedHeaderRequestParams = `featurestore.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1174,10 +1198,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest() ); request.featurestore ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeaturestoreRequest', [ - 'featurestore', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest', + ['featurestore', 'name'] + ); request.featurestore.name = defaultValue1; const expectedHeaderRequestParams = `featurestore.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1230,10 +1254,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest() ); request.featurestore ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeaturestoreRequest', [ - 'featurestore', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest', + ['featurestore', 'name'] + ); request.featurestore.name = defaultValue1; const expectedHeaderRequestParams = `featurestore.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1263,10 +1287,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest() ); request.featurestore ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFeaturestoreRequest', [ - 'featurestore', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest', + ['featurestore', 'name'] + ); request.featurestore.name = defaultValue1; const expectedHeaderRequestParams = `featurestore.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1342,9 +1366,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1375,9 +1400,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1429,9 +1455,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1460,9 +1487,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeaturestoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1538,9 +1566,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEntityTypeRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1571,9 +1600,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEntityTypeRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1625,9 +1655,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEntityTypeRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1656,9 +1687,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateEntityTypeRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1734,9 +1766,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1767,9 +1800,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1821,9 +1855,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1852,9 +1887,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteEntityTypeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1930,9 +1966,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeatureRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1963,9 +2000,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeatureRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2017,9 +2055,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeatureRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2048,9 +2087,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFeatureRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2126,9 +2166,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchCreateFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2159,9 +2200,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchCreateFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2213,9 +2255,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchCreateFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2244,9 +2287,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchCreateFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2322,9 +2366,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeatureRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2355,9 +2400,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeatureRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2409,9 +2455,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeatureRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2440,9 +2487,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeatureRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2518,9 +2566,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2551,9 +2600,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2605,9 +2655,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2636,9 +2687,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2715,7 +2767,7 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest', ['featurestore'] ); request.featurestore = defaultValue1; @@ -2749,7 +2801,7 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest', ['featurestore'] ); request.featurestore = defaultValue1; @@ -2804,7 +2856,7 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest', ['featurestore'] ); request.featurestore = defaultValue1; @@ -2839,7 +2891,7 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadFeatureValuesRequest', + '.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest', ['featurestore'] ); request.featurestore = defaultValue1; @@ -2917,9 +2969,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2950,9 +3003,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3004,9 +3058,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3035,9 +3090,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3113,9 +3169,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3146,9 +3203,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3200,9 +3258,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3231,9 +3290,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFeatureValuesRequest', [ - 'entityType', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest', + ['entityType'] + ); request.entityType = defaultValue1; const expectedHeaderRequestParams = `entity_type=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3309,9 +3369,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3348,9 +3409,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3405,9 +3467,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3436,9 +3499,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3497,9 +3561,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3547,9 +3612,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3597,9 +3663,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturestoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3640,9 +3707,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3679,9 +3747,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3734,9 +3803,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3765,9 +3835,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3826,9 +3897,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3876,9 +3948,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3926,9 +3999,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListEntityTypesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3969,9 +4043,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4008,9 +4083,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4063,9 +4139,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4094,9 +4171,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4154,9 +4232,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4205,9 +4284,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4254,9 +4334,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFeaturesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4296,9 +4377,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedResponse = [ @@ -4335,9 +4417,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedResponse = [ @@ -4390,9 +4473,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4421,9 +4505,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedResponse = [ @@ -4481,9 +4566,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4530,9 +4616,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedResponse = [ @@ -4579,9 +4666,10 @@ describe('v1beta1.FeaturestoreServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest() ); - const defaultValue1 = getTypeDefaultValue('SearchFeaturesRequest', [ - 'location', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest', + ['location'] + ); request.location = defaultValue1; const expectedHeaderRequestParams = `location=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts index dd41ce5dbed..502a3b4a17d 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts @@ -284,9 +284,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -315,9 +316,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -362,9 +364,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -393,9 +396,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -415,10 +419,10 @@ describe('v1.IndexEndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest() ); request.indexEndpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexEndpointRequest', [ - 'indexEndpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest', + ['indexEndpoint', 'name'] + ); request.indexEndpoint.name = defaultValue1; const expectedHeaderRequestParams = `index_endpoint.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -449,10 +453,10 @@ describe('v1.IndexEndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest() ); request.indexEndpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexEndpointRequest', [ - 'indexEndpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest', + ['indexEndpoint', 'name'] + ); request.indexEndpoint.name = defaultValue1; const expectedHeaderRequestParams = `index_endpoint.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -498,10 +502,10 @@ describe('v1.IndexEndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest() ); request.indexEndpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexEndpointRequest', [ - 'indexEndpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest', + ['indexEndpoint', 'name'] + ); request.indexEndpoint.name = defaultValue1; const expectedHeaderRequestParams = `index_endpoint.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -531,10 +535,10 @@ describe('v1.IndexEndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest() ); request.indexEndpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexEndpointRequest', [ - 'indexEndpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest', + ['indexEndpoint', 'name'] + ); request.indexEndpoint.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -553,9 +557,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateIndexEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -586,9 +591,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateIndexEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -640,9 +646,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateIndexEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -671,9 +678,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateIndexEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -749,9 +757,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -782,9 +791,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -836,9 +846,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -867,9 +878,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -945,9 +957,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -977,9 +990,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1031,9 +1045,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1062,9 +1077,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1137,9 +1153,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UndeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UndeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1170,9 +1187,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UndeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UndeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1224,9 +1242,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UndeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UndeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1255,9 +1274,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UndeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UndeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1333,9 +1353,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.MutateDeployedIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('MutateDeployedIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.MutateDeployedIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1366,9 +1387,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.MutateDeployedIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('MutateDeployedIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.MutateDeployedIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1420,9 +1442,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.MutateDeployedIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('MutateDeployedIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.MutateDeployedIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1451,9 +1474,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.MutateDeployedIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('MutateDeployedIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.MutateDeployedIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1529,9 +1553,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1569,9 +1594,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1624,9 +1650,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1655,9 +1682,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1715,9 +1743,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1764,9 +1793,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1813,9 +1843,10 @@ describe('v1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1beta1.ts index 1259a433b91..881461f2ba6 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1beta1.ts @@ -286,9 +286,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -317,9 +318,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -364,9 +366,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -395,9 +398,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -417,10 +421,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest() ); request.indexEndpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexEndpointRequest', [ - 'indexEndpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest', + ['indexEndpoint', 'name'] + ); request.indexEndpoint.name = defaultValue1; const expectedHeaderRequestParams = `index_endpoint.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -451,10 +455,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest() ); request.indexEndpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexEndpointRequest', [ - 'indexEndpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest', + ['indexEndpoint', 'name'] + ); request.indexEndpoint.name = defaultValue1; const expectedHeaderRequestParams = `index_endpoint.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -500,10 +504,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest() ); request.indexEndpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexEndpointRequest', [ - 'indexEndpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest', + ['indexEndpoint', 'name'] + ); request.indexEndpoint.name = defaultValue1; const expectedHeaderRequestParams = `index_endpoint.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -533,10 +537,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest() ); request.indexEndpoint ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexEndpointRequest', [ - 'indexEndpoint', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest', + ['indexEndpoint', 'name'] + ); request.indexEndpoint.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -555,9 +559,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -588,9 +593,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -642,9 +648,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -673,9 +680,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexEndpointRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -751,9 +759,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -784,9 +793,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -838,9 +848,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -869,9 +880,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexEndpointRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -947,9 +959,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -979,9 +992,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1033,9 +1047,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1064,9 +1079,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1139,9 +1155,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UndeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UndeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1172,9 +1189,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UndeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UndeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1226,9 +1244,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UndeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UndeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1257,9 +1276,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UndeployIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('UndeployIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UndeployIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1335,9 +1355,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('MutateDeployedIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1368,9 +1389,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('MutateDeployedIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1422,9 +1444,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('MutateDeployedIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1453,9 +1476,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('MutateDeployedIndexRequest', [ - 'indexEndpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest', + ['indexEndpoint'] + ); request.indexEndpoint = defaultValue1; const expectedHeaderRequestParams = `index_endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1531,9 +1555,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1571,9 +1596,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1628,9 +1654,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1659,9 +1686,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1720,9 +1748,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1770,9 +1799,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1820,9 +1850,10 @@ describe('v1beta1.IndexEndpointServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexEndpointsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts index 19862c4a721..2eb80271fec 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts @@ -273,7 +273,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -301,7 +304,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -345,7 +351,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -370,7 +379,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -388,9 +400,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UpsertDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('UpsertDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpsertDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedHeaderRequestParams = `index=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -418,9 +431,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UpsertDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('UpsertDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpsertDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedHeaderRequestParams = `index=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -464,9 +478,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UpsertDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('UpsertDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpsertDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedHeaderRequestParams = `index=${defaultValue1}`; const expectedError = new Error('expected'); @@ -494,9 +509,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UpsertDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('UpsertDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpsertDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -514,9 +530,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.RemoveDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('RemoveDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.RemoveDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedHeaderRequestParams = `index=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -544,9 +561,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.RemoveDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('RemoveDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.RemoveDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedHeaderRequestParams = `index=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -590,9 +608,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.RemoveDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('RemoveDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.RemoveDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedHeaderRequestParams = `index=${defaultValue1}`; const expectedError = new Error('expected'); @@ -620,9 +639,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.RemoveDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('RemoveDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.RemoveDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -640,9 +660,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateIndexRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -671,9 +692,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateIndexRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -724,9 +746,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateIndexRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -754,9 +777,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateIndexRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -827,10 +851,10 @@ describe('v1.IndexServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateIndexRequest() ); request.index ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexRequest', [ - 'index', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateIndexRequest', + ['index', 'name'] + ); request.index.name = defaultValue1; const expectedHeaderRequestParams = `index.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -860,10 +884,10 @@ describe('v1.IndexServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateIndexRequest() ); request.index ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexRequest', [ - 'index', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateIndexRequest', + ['index', 'name'] + ); request.index.name = defaultValue1; const expectedHeaderRequestParams = `index.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -915,10 +939,10 @@ describe('v1.IndexServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateIndexRequest() ); request.index ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexRequest', [ - 'index', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateIndexRequest', + ['index', 'name'] + ); request.index.name = defaultValue1; const expectedHeaderRequestParams = `index.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -947,10 +971,10 @@ describe('v1.IndexServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateIndexRequest() ); request.index ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexRequest', [ - 'index', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateIndexRequest', + ['index', 'name'] + ); request.index.name = defaultValue1; const expectedHeaderRequestParams = `index.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1020,7 +1044,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1049,7 +1076,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1100,7 +1130,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1128,7 +1161,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1198,9 +1234,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1230,9 +1267,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1278,9 +1316,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1308,9 +1347,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1361,9 +1401,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1411,9 +1452,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1453,9 +1495,10 @@ describe('v1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts index 61dc66d5ab0..550304afe97 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts @@ -275,7 +275,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -303,7 +306,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -347,7 +353,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -372,7 +381,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -390,9 +402,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('UpsertDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedHeaderRequestParams = `index=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -420,9 +433,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('UpsertDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedHeaderRequestParams = `index=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -466,9 +480,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('UpsertDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedHeaderRequestParams = `index=${defaultValue1}`; const expectedError = new Error('expected'); @@ -496,9 +511,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('UpsertDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -516,9 +532,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('RemoveDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedHeaderRequestParams = `index=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -546,9 +563,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('RemoveDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedHeaderRequestParams = `index=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -592,9 +610,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('RemoveDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedHeaderRequestParams = `index=${defaultValue1}`; const expectedError = new Error('expected'); @@ -622,9 +641,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest() ); - const defaultValue1 = getTypeDefaultValue('RemoveDatapointsRequest', [ - 'index', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest', + ['index'] + ); request.index = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -642,9 +662,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateIndexRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -673,9 +694,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateIndexRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -726,9 +748,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateIndexRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -756,9 +779,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateIndexRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateIndexRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -829,10 +853,10 @@ describe('v1beta1.IndexServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateIndexRequest() ); request.index ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexRequest', [ - 'index', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateIndexRequest', + ['index', 'name'] + ); request.index.name = defaultValue1; const expectedHeaderRequestParams = `index.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -862,10 +886,10 @@ describe('v1beta1.IndexServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateIndexRequest() ); request.index ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexRequest', [ - 'index', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateIndexRequest', + ['index', 'name'] + ); request.index.name = defaultValue1; const expectedHeaderRequestParams = `index.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -917,10 +941,10 @@ describe('v1beta1.IndexServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateIndexRequest() ); request.index ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexRequest', [ - 'index', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateIndexRequest', + ['index', 'name'] + ); request.index.name = defaultValue1; const expectedHeaderRequestParams = `index.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -949,10 +973,10 @@ describe('v1beta1.IndexServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateIndexRequest() ); request.index ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateIndexRequest', [ - 'index', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateIndexRequest', + ['index', 'name'] + ); request.index.name = defaultValue1; const expectedHeaderRequestParams = `index.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1022,7 +1046,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1051,7 +1078,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1102,7 +1132,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1130,7 +1163,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteIndexRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteIndexRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteIndexRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1200,9 +1236,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1238,9 +1275,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1292,9 +1330,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1322,9 +1361,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1381,9 +1421,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1431,9 +1472,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1479,9 +1521,10 @@ describe('v1beta1.IndexServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListIndexesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListIndexesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListIndexesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); 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 32bf0cb9575..70d12861c97 100644 --- a/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts @@ -273,9 +273,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateCustomJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -303,9 +304,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateCustomJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -349,9 +351,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateCustomJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -379,9 +382,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateCustomJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -399,9 +403,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -429,9 +434,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -475,9 +481,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -505,9 +512,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -525,9 +533,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CancelCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CancelCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -555,9 +564,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CancelCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CancelCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -601,9 +611,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CancelCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CancelCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -631,9 +642,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CancelCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CancelCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -652,7 +664,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -684,7 +696,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -731,7 +743,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -765,7 +777,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -788,9 +800,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetDataLabelingJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataLabelingJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetDataLabelingJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -819,9 +832,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetDataLabelingJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataLabelingJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetDataLabelingJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -865,9 +879,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetDataLabelingJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataLabelingJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetDataLabelingJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -895,9 +910,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetDataLabelingJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataLabelingJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetDataLabelingJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -916,7 +932,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -948,7 +964,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -995,7 +1011,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -1029,7 +1045,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -1053,7 +1069,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1085,7 +1101,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1132,7 +1148,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1166,7 +1182,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1190,7 +1206,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1222,7 +1238,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1269,7 +1285,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1303,7 +1319,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1327,7 +1343,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1359,7 +1375,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1406,7 +1422,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1440,7 +1456,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1464,7 +1480,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1496,7 +1512,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1543,7 +1559,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1577,7 +1593,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1601,7 +1617,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1633,7 +1649,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1680,7 +1696,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1714,7 +1730,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1738,7 +1754,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1770,7 +1786,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1817,7 +1833,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1851,7 +1867,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1875,7 +1891,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1909,7 +1925,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1956,7 +1972,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1990,7 +2006,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -2014,7 +2030,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2046,7 +2062,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2093,7 +2109,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2127,7 +2143,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2151,7 +2167,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2185,7 +2201,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2232,7 +2248,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2266,7 +2282,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2290,7 +2306,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2324,7 +2340,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2371,7 +2387,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2405,7 +2421,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2428,9 +2444,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2460,9 +2477,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2513,9 +2531,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2543,9 +2562,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2619,7 +2639,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -2652,7 +2672,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -2706,7 +2726,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -2740,7 +2760,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -2816,7 +2836,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -2849,7 +2869,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -2903,7 +2923,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -2937,7 +2957,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -3014,7 +3034,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -3047,7 +3067,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -3101,7 +3121,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -3135,7 +3155,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -3213,7 +3233,7 @@ describe('v1.JobServiceClient', () => { ); request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', ['modelDeploymentMonitoringJob', 'name'] ); request.modelDeploymentMonitoringJob.name = defaultValue1; @@ -3249,7 +3269,7 @@ describe('v1.JobServiceClient', () => { ); request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', ['modelDeploymentMonitoringJob', 'name'] ); request.modelDeploymentMonitoringJob.name = defaultValue1; @@ -3304,7 +3324,7 @@ describe('v1.JobServiceClient', () => { ); request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', ['modelDeploymentMonitoringJob', 'name'] ); request.modelDeploymentMonitoringJob.name = defaultValue1; @@ -3337,7 +3357,7 @@ describe('v1.JobServiceClient', () => { ); request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', ['modelDeploymentMonitoringJob', 'name'] ); request.modelDeploymentMonitoringJob.name = defaultValue1; @@ -3413,7 +3433,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -3448,7 +3468,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -3502,7 +3522,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -3534,7 +3554,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -3609,9 +3629,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3647,9 +3668,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3701,9 +3723,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3731,9 +3754,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3790,9 +3814,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3838,9 +3863,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3886,9 +3912,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3927,9 +3954,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3966,9 +3994,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4020,9 +4049,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4050,9 +4080,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4110,9 +4141,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4159,9 +4191,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4208,9 +4241,10 @@ describe('v1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4251,7 +4285,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4291,7 +4325,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4348,7 +4382,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4382,7 +4416,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4454,7 +4488,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4515,7 +4549,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4569,7 +4603,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4616,7 +4650,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4656,7 +4690,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4713,7 +4747,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4747,7 +4781,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4814,7 +4848,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4870,7 +4904,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4924,7 +4958,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4971,7 +5005,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5014,7 +5048,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5073,7 +5107,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5107,7 +5141,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5180,7 +5214,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5242,7 +5276,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5297,7 +5331,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5345,7 +5379,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5387,7 +5421,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5444,7 +5478,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5478,7 +5512,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5550,7 +5584,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5611,7 +5645,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5665,7 +5699,7 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; diff --git a/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts index b2ac2581f05..79a998e323f 100644 --- a/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts @@ -273,9 +273,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -303,9 +304,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -349,9 +351,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -379,9 +382,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -399,9 +403,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -429,9 +434,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -475,9 +481,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -505,9 +512,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -525,9 +533,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -555,9 +564,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -601,9 +611,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -631,9 +642,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -652,7 +664,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -684,7 +696,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -731,7 +743,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -765,7 +777,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -788,9 +800,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataLabelingJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -819,9 +832,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataLabelingJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -865,9 +879,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataLabelingJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -895,9 +910,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataLabelingJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -916,7 +932,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -948,7 +964,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -995,7 +1011,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -1029,7 +1045,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -1053,7 +1069,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1085,7 +1101,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1132,7 +1148,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1166,7 +1182,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1190,7 +1206,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1222,7 +1238,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1269,7 +1285,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1303,7 +1319,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1327,7 +1343,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1359,7 +1375,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1406,7 +1422,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1440,7 +1456,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -1464,7 +1480,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1496,7 +1512,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1543,7 +1559,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1577,7 +1593,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1601,7 +1617,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1633,7 +1649,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1680,7 +1696,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1714,7 +1730,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1738,7 +1754,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1770,7 +1786,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1817,7 +1833,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1851,7 +1867,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -1875,7 +1891,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1909,7 +1925,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1956,7 +1972,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -1990,7 +2006,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', ['parent'] ); request.parent = defaultValue1; @@ -2014,7 +2030,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2046,7 +2062,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2093,7 +2109,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2127,7 +2143,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2151,7 +2167,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2185,7 +2201,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2232,7 +2248,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2266,7 +2282,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2290,7 +2306,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2324,7 +2340,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2371,7 +2387,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2405,7 +2421,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -2428,9 +2444,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2460,9 +2477,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2513,9 +2531,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2543,9 +2562,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2619,7 +2639,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -2652,7 +2672,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -2706,7 +2726,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -2740,7 +2760,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', ['name'] ); request.name = defaultValue1; @@ -2816,7 +2836,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -2849,7 +2869,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -2903,7 +2923,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -2937,7 +2957,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -3014,7 +3034,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -3047,7 +3067,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -3101,7 +3121,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -3135,7 +3155,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -3213,7 +3233,7 @@ describe('v1beta1.JobServiceClient', () => { ); request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', ['modelDeploymentMonitoringJob', 'name'] ); request.modelDeploymentMonitoringJob.name = defaultValue1; @@ -3249,7 +3269,7 @@ describe('v1beta1.JobServiceClient', () => { ); request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', ['modelDeploymentMonitoringJob', 'name'] ); request.modelDeploymentMonitoringJob.name = defaultValue1; @@ -3304,7 +3324,7 @@ describe('v1beta1.JobServiceClient', () => { ); request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', ['modelDeploymentMonitoringJob', 'name'] ); request.modelDeploymentMonitoringJob.name = defaultValue1; @@ -3337,7 +3357,7 @@ describe('v1beta1.JobServiceClient', () => { ); request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', ['modelDeploymentMonitoringJob', 'name'] ); request.modelDeploymentMonitoringJob.name = defaultValue1; @@ -3413,7 +3433,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -3448,7 +3468,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -3502,7 +3522,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -3534,7 +3554,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; @@ -3609,9 +3629,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3647,9 +3668,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3701,9 +3723,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3731,9 +3754,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3791,9 +3815,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3840,9 +3865,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3888,9 +3914,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3930,9 +3957,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3969,9 +3997,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4025,9 +4054,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4055,9 +4085,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4117,9 +4148,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4168,9 +4200,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4217,9 +4250,10 @@ describe('v1beta1.JobServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataLabelingJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4260,7 +4294,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4300,7 +4334,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4357,7 +4391,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4391,7 +4425,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4463,7 +4497,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4524,7 +4558,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4578,7 +4612,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4625,7 +4659,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4665,7 +4699,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4722,7 +4756,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4756,7 +4790,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4825,7 +4859,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4883,7 +4917,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4937,7 +4971,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListBatchPredictionJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4984,7 +5018,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5027,7 +5061,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5086,7 +5120,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5120,7 +5154,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5193,7 +5227,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5255,7 +5289,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5310,7 +5344,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchModelDeploymentMonitoringStatsAnomaliesRequest', + '.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest', ['modelDeploymentMonitoringJob'] ); request.modelDeploymentMonitoringJob = defaultValue1; @@ -5358,7 +5392,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5400,7 +5434,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5457,7 +5491,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5491,7 +5525,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5563,7 +5597,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5624,7 +5658,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5678,7 +5712,7 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelDeploymentMonitoringJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest', ['parent'] ); request.parent = defaultValue1; diff --git a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts index 17f88e6cbcb..f2d9ecccd1b 100644 --- a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts @@ -275,9 +275,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -305,9 +306,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -351,9 +353,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -381,9 +384,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -401,9 +405,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateArtifactRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateArtifactRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -431,9 +436,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateArtifactRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateArtifactRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -477,9 +483,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateArtifactRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateArtifactRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -507,9 +514,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateArtifactRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateArtifactRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -527,7 +535,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('GetArtifactRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -555,7 +566,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('GetArtifactRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -599,7 +613,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('GetArtifactRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -627,7 +644,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('GetArtifactRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -646,10 +666,10 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateArtifactRequest() ); request.artifact ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateArtifactRequest', [ - 'artifact', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateArtifactRequest', + ['artifact', 'name'] + ); request.artifact.name = defaultValue1; const expectedHeaderRequestParams = `artifact.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -678,10 +698,10 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateArtifactRequest() ); request.artifact ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateArtifactRequest', [ - 'artifact', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateArtifactRequest', + ['artifact', 'name'] + ); request.artifact.name = defaultValue1; const expectedHeaderRequestParams = `artifact.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -726,10 +746,10 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateArtifactRequest() ); request.artifact ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateArtifactRequest', [ - 'artifact', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateArtifactRequest', + ['artifact', 'name'] + ); request.artifact.name = defaultValue1; const expectedHeaderRequestParams = `artifact.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -758,10 +778,10 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateArtifactRequest() ); request.artifact ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateArtifactRequest', [ - 'artifact', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateArtifactRequest', + ['artifact', 'name'] + ); request.artifact.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -779,9 +799,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateContextRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateContextRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateContextRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -809,9 +830,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateContextRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateContextRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateContextRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -855,9 +877,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateContextRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateContextRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateContextRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -885,9 +908,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateContextRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateContextRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateContextRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -905,7 +929,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetContextRequest() ); - const defaultValue1 = getTypeDefaultValue('GetContextRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -933,7 +960,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetContextRequest() ); - const defaultValue1 = getTypeDefaultValue('GetContextRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -977,7 +1007,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetContextRequest() ); - const defaultValue1 = getTypeDefaultValue('GetContextRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1005,7 +1038,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetContextRequest() ); - const defaultValue1 = getTypeDefaultValue('GetContextRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1024,10 +1060,10 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateContextRequest() ); request.context ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateContextRequest', [ - 'context', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateContextRequest', + ['context', 'name'] + ); request.context.name = defaultValue1; const expectedHeaderRequestParams = `context.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1056,10 +1092,10 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateContextRequest() ); request.context ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateContextRequest', [ - 'context', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateContextRequest', + ['context', 'name'] + ); request.context.name = defaultValue1; const expectedHeaderRequestParams = `context.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1104,10 +1140,10 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateContextRequest() ); request.context ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateContextRequest', [ - 'context', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateContextRequest', + ['context', 'name'] + ); request.context.name = defaultValue1; const expectedHeaderRequestParams = `context.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1136,10 +1172,10 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateContextRequest() ); request.context ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateContextRequest', [ - 'context', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateContextRequest', + ['context', 'name'] + ); request.context.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1158,7 +1194,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AddContextArtifactsAndExecutionsRequest', + '.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest', ['context'] ); request.context = defaultValue1; @@ -1190,7 +1226,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AddContextArtifactsAndExecutionsRequest', + '.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest', ['context'] ); request.context = defaultValue1; @@ -1237,7 +1273,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AddContextArtifactsAndExecutionsRequest', + '.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest', ['context'] ); request.context = defaultValue1; @@ -1271,7 +1307,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AddContextArtifactsAndExecutionsRequest', + '.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest', ['context'] ); request.context = defaultValue1; @@ -1294,9 +1330,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.AddContextChildrenRequest() ); - const defaultValue1 = getTypeDefaultValue('AddContextChildrenRequest', [ - 'context', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.AddContextChildrenRequest', + ['context'] + ); request.context = defaultValue1; const expectedHeaderRequestParams = `context=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1325,9 +1362,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.AddContextChildrenRequest() ); - const defaultValue1 = getTypeDefaultValue('AddContextChildrenRequest', [ - 'context', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.AddContextChildrenRequest', + ['context'] + ); request.context = defaultValue1; const expectedHeaderRequestParams = `context=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1371,9 +1409,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.AddContextChildrenRequest() ); - const defaultValue1 = getTypeDefaultValue('AddContextChildrenRequest', [ - 'context', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.AddContextChildrenRequest', + ['context'] + ); request.context = defaultValue1; const expectedHeaderRequestParams = `context=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1401,9 +1440,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.AddContextChildrenRequest() ); - const defaultValue1 = getTypeDefaultValue('AddContextChildrenRequest', [ - 'context', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.AddContextChildrenRequest', + ['context'] + ); request.context = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1411,6 +1451,143 @@ describe('v1.MetadataServiceClient', () => { }); }); + describe('removeContextChildren', () => { + it('invokes removeContextChildren without error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RemoveContextChildrenRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.RemoveContextChildrenRequest', + ['context'] + ); + request.context = defaultValue1; + const expectedHeaderRequestParams = `context=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RemoveContextChildrenResponse() + ); + client.innerApiCalls.removeContextChildren = + stubSimpleCall(expectedResponse); + const [response] = await client.removeContextChildren(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.removeContextChildren as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.removeContextChildren as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes removeContextChildren without error using callback', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RemoveContextChildrenRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.RemoveContextChildrenRequest', + ['context'] + ); + request.context = defaultValue1; + const expectedHeaderRequestParams = `context=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RemoveContextChildrenResponse() + ); + client.innerApiCalls.removeContextChildren = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.removeContextChildren( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IRemoveContextChildrenResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.removeContextChildren as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.removeContextChildren as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes removeContextChildren with error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RemoveContextChildrenRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.RemoveContextChildrenRequest', + ['context'] + ); + request.context = defaultValue1; + const expectedHeaderRequestParams = `context=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.removeContextChildren = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.removeContextChildren(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.removeContextChildren as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.removeContextChildren as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes removeContextChildren with closed client', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RemoveContextChildrenRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.RemoveContextChildrenRequest', + ['context'] + ); + request.context = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.removeContextChildren(request), + expectedError + ); + }); + }); + describe('queryContextLineageSubgraph', () => { it('invokes queryContextLineageSubgraph without error', async () => { const client = new metadataserviceModule.v1.MetadataServiceClient({ @@ -1422,7 +1599,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryContextLineageSubgraphRequest', + '.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest', ['context'] ); request.context = defaultValue1; @@ -1454,7 +1631,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryContextLineageSubgraphRequest', + '.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest', ['context'] ); request.context = defaultValue1; @@ -1501,7 +1678,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryContextLineageSubgraphRequest', + '.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest', ['context'] ); request.context = defaultValue1; @@ -1535,7 +1712,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryContextLineageSubgraphRequest', + '.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest', ['context'] ); request.context = defaultValue1; @@ -1558,9 +1735,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1588,9 +1766,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1634,9 +1813,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1664,9 +1844,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1684,9 +1865,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1714,9 +1896,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1760,9 +1943,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1790,9 +1974,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1811,10 +1996,10 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateExecutionRequest() ); request.execution ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateExecutionRequest', [ - 'execution', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateExecutionRequest', + ['execution', 'name'] + ); request.execution.name = defaultValue1; const expectedHeaderRequestParams = `execution.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1843,10 +2028,10 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateExecutionRequest() ); request.execution ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateExecutionRequest', [ - 'execution', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateExecutionRequest', + ['execution', 'name'] + ); request.execution.name = defaultValue1; const expectedHeaderRequestParams = `execution.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1891,10 +2076,10 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateExecutionRequest() ); request.execution ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateExecutionRequest', [ - 'execution', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateExecutionRequest', + ['execution', 'name'] + ); request.execution.name = defaultValue1; const expectedHeaderRequestParams = `execution.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1923,10 +2108,10 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateExecutionRequest() ); request.execution ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateExecutionRequest', [ - 'execution', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateExecutionRequest', + ['execution', 'name'] + ); request.execution.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1944,9 +2129,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.AddExecutionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('AddExecutionEventsRequest', [ - 'execution', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.AddExecutionEventsRequest', + ['execution'] + ); request.execution = defaultValue1; const expectedHeaderRequestParams = `execution=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1975,9 +2161,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.AddExecutionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('AddExecutionEventsRequest', [ - 'execution', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.AddExecutionEventsRequest', + ['execution'] + ); request.execution = defaultValue1; const expectedHeaderRequestParams = `execution=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2021,9 +2208,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.AddExecutionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('AddExecutionEventsRequest', [ - 'execution', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.AddExecutionEventsRequest', + ['execution'] + ); request.execution = defaultValue1; const expectedHeaderRequestParams = `execution=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2051,9 +2239,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.AddExecutionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('AddExecutionEventsRequest', [ - 'execution', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.AddExecutionEventsRequest', + ['execution'] + ); request.execution = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2072,7 +2261,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryExecutionInputsAndOutputsRequest', + '.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest', ['execution'] ); request.execution = defaultValue1; @@ -2104,7 +2293,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryExecutionInputsAndOutputsRequest', + '.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest', ['execution'] ); request.execution = defaultValue1; @@ -2151,7 +2340,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryExecutionInputsAndOutputsRequest', + '.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest', ['execution'] ); request.execution = defaultValue1; @@ -2185,7 +2374,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryExecutionInputsAndOutputsRequest', + '.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest', ['execution'] ); request.execution = defaultValue1; @@ -2208,9 +2397,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataSchemaRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2239,9 +2429,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataSchemaRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2285,9 +2476,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataSchemaRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2315,9 +2507,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataSchemaRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2335,9 +2528,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataSchemaRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetMetadataSchemaRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2365,9 +2559,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataSchemaRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetMetadataSchemaRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2411,9 +2606,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataSchemaRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetMetadataSchemaRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2441,9 +2637,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataSchemaRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetMetadataSchemaRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2462,7 +2659,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryArtifactLineageSubgraphRequest', + '.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest', ['artifact'] ); request.artifact = defaultValue1; @@ -2494,7 +2691,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryArtifactLineageSubgraphRequest', + '.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest', ['artifact'] ); request.artifact = defaultValue1; @@ -2541,7 +2738,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryArtifactLineageSubgraphRequest', + '.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest', ['artifact'] ); request.artifact = defaultValue1; @@ -2575,7 +2772,7 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryArtifactLineageSubgraphRequest', + '.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest', ['artifact'] ); request.artifact = defaultValue1; @@ -2598,9 +2795,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataStoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateMetadataStoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2630,9 +2828,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataStoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateMetadataStoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2683,9 +2882,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataStoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateMetadataStoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2713,9 +2913,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataStoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateMetadataStoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2788,9 +2989,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2820,9 +3022,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2873,9 +3076,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2903,9 +3107,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2978,9 +3183,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteArtifactRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3010,9 +3216,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteArtifactRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3063,9 +3270,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteArtifactRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3093,9 +3301,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteArtifactRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3168,9 +3377,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PurgeArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PurgeArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3200,9 +3410,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PurgeArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PurgeArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3253,9 +3464,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PurgeArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PurgeArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3283,9 +3495,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PurgeArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PurgeArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3358,9 +3571,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteContextRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteContextRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3390,9 +3604,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteContextRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteContextRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3443,9 +3658,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteContextRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteContextRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3473,9 +3689,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteContextRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteContextRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3548,9 +3765,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PurgeContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PurgeContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3580,9 +3798,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PurgeContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PurgeContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3633,9 +3852,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PurgeContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PurgeContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3663,9 +3883,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PurgeContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PurgeContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3738,9 +3959,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3770,9 +3992,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3823,9 +4046,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3853,9 +4077,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3928,9 +4153,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PurgeExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PurgeExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3960,9 +4186,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PurgeExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PurgeExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4013,9 +4240,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PurgeExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PurgeExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4043,9 +4271,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PurgeExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PurgeExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4118,9 +4347,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4157,9 +4387,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4211,9 +4442,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4241,9 +4473,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4300,9 +4533,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4348,9 +4582,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4396,9 +4631,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4438,9 +4674,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4470,9 +4707,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4518,9 +4756,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4548,9 +4787,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4601,9 +4841,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4649,9 +4890,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4691,9 +4933,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4732,9 +4975,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4764,9 +5008,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4812,9 +5057,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4842,9 +5088,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4895,9 +5142,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4945,9 +5193,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4987,9 +5236,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5028,9 +5278,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5066,9 +5317,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5120,9 +5372,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5150,9 +5403,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5209,9 +5463,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5257,9 +5512,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5305,9 +5561,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5346,9 +5603,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5385,9 +5643,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5439,9 +5698,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5469,9 +5729,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5529,9 +5790,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5578,9 +5840,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5626,9 +5889,10 @@ describe('v1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts index 5fff4422ce7..bdba0c1d1be 100644 --- a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts @@ -275,9 +275,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -305,9 +306,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -351,9 +353,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -381,9 +384,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -401,9 +405,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateArtifactRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateArtifactRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -431,9 +436,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateArtifactRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateArtifactRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -477,9 +483,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateArtifactRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateArtifactRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -507,9 +514,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateArtifactRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateArtifactRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -527,7 +535,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('GetArtifactRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -555,7 +566,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('GetArtifactRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -599,7 +613,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('GetArtifactRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -627,7 +644,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('GetArtifactRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -646,10 +666,10 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest() ); request.artifact ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateArtifactRequest', [ - 'artifact', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest', + ['artifact', 'name'] + ); request.artifact.name = defaultValue1; const expectedHeaderRequestParams = `artifact.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -678,10 +698,10 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest() ); request.artifact ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateArtifactRequest', [ - 'artifact', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest', + ['artifact', 'name'] + ); request.artifact.name = defaultValue1; const expectedHeaderRequestParams = `artifact.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -726,10 +746,10 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest() ); request.artifact ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateArtifactRequest', [ - 'artifact', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest', + ['artifact', 'name'] + ); request.artifact.name = defaultValue1; const expectedHeaderRequestParams = `artifact.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -758,10 +778,10 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest() ); request.artifact ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateArtifactRequest', [ - 'artifact', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest', + ['artifact', 'name'] + ); request.artifact.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -779,9 +799,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateContextRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateContextRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateContextRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -809,9 +830,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateContextRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateContextRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateContextRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -855,9 +877,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateContextRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateContextRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateContextRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -885,9 +908,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateContextRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateContextRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateContextRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -905,7 +929,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetContextRequest() ); - const defaultValue1 = getTypeDefaultValue('GetContextRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -933,7 +960,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetContextRequest() ); - const defaultValue1 = getTypeDefaultValue('GetContextRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -977,7 +1007,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetContextRequest() ); - const defaultValue1 = getTypeDefaultValue('GetContextRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1005,7 +1038,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetContextRequest() ); - const defaultValue1 = getTypeDefaultValue('GetContextRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1024,10 +1060,10 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateContextRequest() ); request.context ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateContextRequest', [ - 'context', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateContextRequest', + ['context', 'name'] + ); request.context.name = defaultValue1; const expectedHeaderRequestParams = `context.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1056,10 +1092,10 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateContextRequest() ); request.context ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateContextRequest', [ - 'context', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateContextRequest', + ['context', 'name'] + ); request.context.name = defaultValue1; const expectedHeaderRequestParams = `context.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1104,10 +1140,10 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateContextRequest() ); request.context ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateContextRequest', [ - 'context', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateContextRequest', + ['context', 'name'] + ); request.context.name = defaultValue1; const expectedHeaderRequestParams = `context.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1136,10 +1172,10 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateContextRequest() ); request.context ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateContextRequest', [ - 'context', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateContextRequest', + ['context', 'name'] + ); request.context.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1158,7 +1194,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AddContextArtifactsAndExecutionsRequest', + '.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest', ['context'] ); request.context = defaultValue1; @@ -1190,7 +1226,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AddContextArtifactsAndExecutionsRequest', + '.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest', ['context'] ); request.context = defaultValue1; @@ -1237,7 +1273,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AddContextArtifactsAndExecutionsRequest', + '.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest', ['context'] ); request.context = defaultValue1; @@ -1271,7 +1307,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AddContextArtifactsAndExecutionsRequest', + '.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest', ['context'] ); request.context = defaultValue1; @@ -1294,9 +1330,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest() ); - const defaultValue1 = getTypeDefaultValue('AddContextChildrenRequest', [ - 'context', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest', + ['context'] + ); request.context = defaultValue1; const expectedHeaderRequestParams = `context=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1325,9 +1362,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest() ); - const defaultValue1 = getTypeDefaultValue('AddContextChildrenRequest', [ - 'context', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest', + ['context'] + ); request.context = defaultValue1; const expectedHeaderRequestParams = `context=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1371,9 +1409,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest() ); - const defaultValue1 = getTypeDefaultValue('AddContextChildrenRequest', [ - 'context', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest', + ['context'] + ); request.context = defaultValue1; const expectedHeaderRequestParams = `context=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1401,9 +1440,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest() ); - const defaultValue1 = getTypeDefaultValue('AddContextChildrenRequest', [ - 'context', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest', + ['context'] + ); request.context = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1411,6 +1451,143 @@ describe('v1beta1.MetadataServiceClient', () => { }); }); + describe('removeContextChildren', () => { + it('invokes removeContextChildren without error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest', + ['context'] + ); + request.context = defaultValue1; + const expectedHeaderRequestParams = `context=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse() + ); + client.innerApiCalls.removeContextChildren = + stubSimpleCall(expectedResponse); + const [response] = await client.removeContextChildren(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.removeContextChildren as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.removeContextChildren as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes removeContextChildren without error using callback', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest', + ['context'] + ); + request.context = defaultValue1; + const expectedHeaderRequestParams = `context=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse() + ); + client.innerApiCalls.removeContextChildren = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.removeContextChildren( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IRemoveContextChildrenResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.removeContextChildren as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.removeContextChildren as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes removeContextChildren with error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest', + ['context'] + ); + request.context = defaultValue1; + const expectedHeaderRequestParams = `context=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.removeContextChildren = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.removeContextChildren(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.removeContextChildren as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.removeContextChildren as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes removeContextChildren with closed client', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest', + ['context'] + ); + request.context = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.removeContextChildren(request), + expectedError + ); + }); + }); + describe('queryContextLineageSubgraph', () => { it('invokes queryContextLineageSubgraph without error', async () => { const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ @@ -1422,7 +1599,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryContextLineageSubgraphRequest', + '.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest', ['context'] ); request.context = defaultValue1; @@ -1454,7 +1631,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryContextLineageSubgraphRequest', + '.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest', ['context'] ); request.context = defaultValue1; @@ -1501,7 +1678,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryContextLineageSubgraphRequest', + '.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest', ['context'] ); request.context = defaultValue1; @@ -1535,7 +1712,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryContextLineageSubgraphRequest', + '.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest', ['context'] ); request.context = defaultValue1; @@ -1558,9 +1735,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1588,9 +1766,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1634,9 +1813,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1664,9 +1844,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1684,9 +1865,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1714,9 +1896,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1760,9 +1943,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1790,9 +1974,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1811,10 +1996,10 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest() ); request.execution ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateExecutionRequest', [ - 'execution', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest', + ['execution', 'name'] + ); request.execution.name = defaultValue1; const expectedHeaderRequestParams = `execution.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1843,10 +2028,10 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest() ); request.execution ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateExecutionRequest', [ - 'execution', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest', + ['execution', 'name'] + ); request.execution.name = defaultValue1; const expectedHeaderRequestParams = `execution.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1891,10 +2076,10 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest() ); request.execution ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateExecutionRequest', [ - 'execution', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest', + ['execution', 'name'] + ); request.execution.name = defaultValue1; const expectedHeaderRequestParams = `execution.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1923,10 +2108,10 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest() ); request.execution ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateExecutionRequest', [ - 'execution', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest', + ['execution', 'name'] + ); request.execution.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1944,9 +2129,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('AddExecutionEventsRequest', [ - 'execution', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest', + ['execution'] + ); request.execution = defaultValue1; const expectedHeaderRequestParams = `execution=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1975,9 +2161,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('AddExecutionEventsRequest', [ - 'execution', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest', + ['execution'] + ); request.execution = defaultValue1; const expectedHeaderRequestParams = `execution=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2021,9 +2208,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('AddExecutionEventsRequest', [ - 'execution', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest', + ['execution'] + ); request.execution = defaultValue1; const expectedHeaderRequestParams = `execution=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2051,9 +2239,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('AddExecutionEventsRequest', [ - 'execution', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest', + ['execution'] + ); request.execution = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2072,7 +2261,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryExecutionInputsAndOutputsRequest', + '.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest', ['execution'] ); request.execution = defaultValue1; @@ -2104,7 +2293,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryExecutionInputsAndOutputsRequest', + '.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest', ['execution'] ); request.execution = defaultValue1; @@ -2151,7 +2340,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryExecutionInputsAndOutputsRequest', + '.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest', ['execution'] ); request.execution = defaultValue1; @@ -2185,7 +2374,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryExecutionInputsAndOutputsRequest', + '.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest', ['execution'] ); request.execution = defaultValue1; @@ -2208,9 +2397,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataSchemaRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2239,9 +2429,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataSchemaRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2285,9 +2476,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataSchemaRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2315,9 +2507,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataSchemaRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2335,9 +2528,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataSchemaRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2365,9 +2559,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataSchemaRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2411,9 +2606,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataSchemaRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2441,9 +2637,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMetadataSchemaRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2462,7 +2659,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryArtifactLineageSubgraphRequest', + '.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest', ['artifact'] ); request.artifact = defaultValue1; @@ -2494,7 +2691,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryArtifactLineageSubgraphRequest', + '.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest', ['artifact'] ); request.artifact = defaultValue1; @@ -2541,7 +2738,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryArtifactLineageSubgraphRequest', + '.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest', ['artifact'] ); request.artifact = defaultValue1; @@ -2575,7 +2772,7 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest() ); const defaultValue1 = getTypeDefaultValue( - 'QueryArtifactLineageSubgraphRequest', + '.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest', ['artifact'] ); request.artifact = defaultValue1; @@ -2598,9 +2795,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataStoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2630,9 +2828,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataStoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2683,9 +2882,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataStoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2713,9 +2913,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMetadataStoreRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2788,9 +2989,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2820,9 +3022,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2873,9 +3076,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2903,9 +3107,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteMetadataStoreRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2978,9 +3183,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteArtifactRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3010,9 +3216,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteArtifactRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3063,9 +3270,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteArtifactRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3093,9 +3301,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteArtifactRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3168,9 +3377,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3200,9 +3410,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3253,9 +3464,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3283,9 +3495,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3358,9 +3571,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteContextRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteContextRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3390,9 +3604,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteContextRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteContextRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3443,9 +3658,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteContextRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteContextRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3473,9 +3689,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteContextRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteContextRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteContextRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3548,9 +3765,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PurgeContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PurgeContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3580,9 +3798,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PurgeContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PurgeContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3633,9 +3852,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PurgeContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PurgeContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3663,9 +3883,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PurgeContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PurgeContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3738,9 +3959,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3770,9 +3992,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3823,9 +4046,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3853,9 +4077,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3928,9 +4153,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3960,9 +4186,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4013,9 +4240,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4043,9 +4271,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('PurgeExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4118,9 +4347,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4157,9 +4387,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4213,9 +4444,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4243,9 +4475,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4303,9 +4536,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4352,9 +4586,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4401,9 +4636,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataStoresRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4443,9 +4679,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4481,9 +4718,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4535,9 +4773,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4565,9 +4804,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4624,9 +4864,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4672,9 +4913,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4720,9 +4962,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListArtifactsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListArtifactsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListArtifactsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4762,9 +5005,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4800,9 +5044,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4854,9 +5099,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4884,9 +5130,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4943,9 +5190,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4993,9 +5241,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5041,9 +5290,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListContextsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListContextsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListContextsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5082,9 +5332,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5120,9 +5371,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5174,9 +5426,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5204,9 +5457,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5264,9 +5518,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5313,9 +5568,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5361,9 +5617,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5403,9 +5660,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5442,9 +5700,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5498,9 +5757,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5528,9 +5788,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5588,9 +5849,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5637,9 +5899,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5686,9 +5949,10 @@ describe('v1beta1.MetadataServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMetadataSchemasRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); 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 f4b33379eb2..8e23e2dcd40 100644 --- a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts @@ -276,7 +276,7 @@ describe('v1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchMigrateResourcesRequest', + '.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -309,7 +309,7 @@ describe('v1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchMigrateResourcesRequest', + '.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -363,7 +363,7 @@ describe('v1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchMigrateResourcesRequest', + '.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -397,7 +397,7 @@ describe('v1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchMigrateResourcesRequest', + '.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -473,7 +473,7 @@ describe('v1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -513,7 +513,7 @@ describe('v1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -570,7 +570,7 @@ describe('v1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -604,7 +604,7 @@ describe('v1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -671,7 +671,7 @@ describe('v1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -727,7 +727,7 @@ describe('v1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -781,7 +781,7 @@ describe('v1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; diff --git a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts index 91031cdcde7..4d554be9dfe 100644 --- a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts @@ -277,7 +277,7 @@ describe('v1beta1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchMigrateResourcesRequest', + '.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -310,7 +310,7 @@ describe('v1beta1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchMigrateResourcesRequest', + '.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -364,7 +364,7 @@ describe('v1beta1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchMigrateResourcesRequest', + '.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -398,7 +398,7 @@ describe('v1beta1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchMigrateResourcesRequest', + '.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -474,7 +474,7 @@ describe('v1beta1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -514,7 +514,7 @@ describe('v1beta1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -571,7 +571,7 @@ describe('v1beta1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -605,7 +605,7 @@ describe('v1beta1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -674,7 +674,7 @@ describe('v1beta1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -732,7 +732,7 @@ describe('v1beta1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; @@ -786,7 +786,7 @@ describe('v1beta1.MigrationServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchMigratableResourcesRequest', + '.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest', ['parent'] ); request.parent = defaultValue1; 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 0d724f48195..a35377ce9bd 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts @@ -273,7 +273,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetModelRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -301,7 +304,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetModelRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -345,7 +351,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetModelRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -370,7 +379,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetModelRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -389,10 +401,10 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateModelRequest() ); request.model ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateModelRequest', [ - 'model', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateModelRequest', + ['model', 'name'] + ); request.model.name = defaultValue1; const expectedHeaderRequestParams = `model.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -421,10 +433,10 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateModelRequest() ); request.model ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateModelRequest', [ - 'model', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateModelRequest', + ['model', 'name'] + ); request.model.name = defaultValue1; const expectedHeaderRequestParams = `model.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -469,10 +481,10 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateModelRequest() ); request.model ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateModelRequest', [ - 'model', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateModelRequest', + ['model', 'name'] + ); request.model.name = defaultValue1; const expectedHeaderRequestParams = `model.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -501,10 +513,10 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateModelRequest() ); request.model ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateModelRequest', [ - 'model', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateModelRequest', + ['model', 'name'] + ); request.model.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -522,9 +534,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.MergeVersionAliasesRequest() ); - const defaultValue1 = getTypeDefaultValue('MergeVersionAliasesRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.MergeVersionAliasesRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -553,9 +566,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.MergeVersionAliasesRequest() ); - const defaultValue1 = getTypeDefaultValue('MergeVersionAliasesRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.MergeVersionAliasesRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -599,9 +613,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.MergeVersionAliasesRequest() ); - const defaultValue1 = getTypeDefaultValue('MergeVersionAliasesRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.MergeVersionAliasesRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -629,9 +644,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.MergeVersionAliasesRequest() ); - const defaultValue1 = getTypeDefaultValue('MergeVersionAliasesRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.MergeVersionAliasesRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -650,7 +666,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.ImportModelEvaluationRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ImportModelEvaluationRequest', + '.google.cloud.aiplatform.v1.ImportModelEvaluationRequest', ['parent'] ); request.parent = defaultValue1; @@ -682,7 +698,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.ImportModelEvaluationRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ImportModelEvaluationRequest', + '.google.cloud.aiplatform.v1.ImportModelEvaluationRequest', ['parent'] ); request.parent = defaultValue1; @@ -729,7 +745,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.ImportModelEvaluationRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ImportModelEvaluationRequest', + '.google.cloud.aiplatform.v1.ImportModelEvaluationRequest', ['parent'] ); request.parent = defaultValue1; @@ -763,7 +779,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.ImportModelEvaluationRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ImportModelEvaluationRequest', + '.google.cloud.aiplatform.v1.ImportModelEvaluationRequest', ['parent'] ); request.parent = defaultValue1; @@ -787,7 +803,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchImportModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -819,7 +835,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchImportModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -866,7 +882,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchImportModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -900,7 +916,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchImportModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -923,9 +939,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetModelEvaluationRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelEvaluationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelEvaluationRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -954,9 +971,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetModelEvaluationRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelEvaluationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelEvaluationRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1000,9 +1018,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetModelEvaluationRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelEvaluationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelEvaluationRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1030,9 +1049,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetModelEvaluationRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelEvaluationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelEvaluationRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1051,7 +1071,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelEvaluationSliceRequest', + '.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest', ['name'] ); request.name = defaultValue1; @@ -1083,7 +1103,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelEvaluationSliceRequest', + '.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest', ['name'] ); request.name = defaultValue1; @@ -1130,7 +1150,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelEvaluationSliceRequest', + '.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest', ['name'] ); request.name = defaultValue1; @@ -1164,7 +1184,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelEvaluationSliceRequest', + '.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest', ['name'] ); request.name = defaultValue1; @@ -1187,9 +1207,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UploadModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UploadModelRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UploadModelRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1218,9 +1239,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UploadModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UploadModelRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UploadModelRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1271,9 +1293,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UploadModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UploadModelRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UploadModelRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1301,9 +1324,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.UploadModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UploadModelRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UploadModelRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1373,7 +1397,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1402,7 +1429,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1453,7 +1483,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1481,7 +1514,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1551,9 +1587,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteModelVersionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelVersionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelVersionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1583,9 +1620,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteModelVersionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelVersionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelVersionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1636,9 +1674,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteModelVersionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelVersionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelVersionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1666,9 +1705,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteModelVersionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelVersionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelVersionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1741,7 +1781,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExportModelRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExportModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1770,7 +1813,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExportModelRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExportModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1821,7 +1867,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExportModelRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExportModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1849,7 +1898,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExportModelRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExportModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1919,9 +1971,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1951,9 +2004,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1999,9 +2053,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2029,9 +2084,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2082,9 +2138,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2132,9 +2189,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2174,9 +2232,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2217,9 +2276,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = [ @@ -2249,9 +2309,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = [ @@ -2297,9 +2358,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2327,9 +2389,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = [ @@ -2380,9 +2443,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2428,9 +2492,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = [ @@ -2470,9 +2535,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2511,9 +2577,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2550,9 +2617,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2604,9 +2672,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2634,9 +2703,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2694,9 +2764,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2743,9 +2814,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2792,9 +2864,10 @@ describe('v1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2835,7 +2908,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -2875,7 +2948,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -2932,7 +3005,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -2966,7 +3039,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -3035,7 +3108,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -3093,7 +3166,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -3147,7 +3220,7 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; diff --git a/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts index c58ed31d7d8..8e128ffa0e7 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts @@ -275,7 +275,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetModelRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -303,7 +306,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetModelRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -347,7 +353,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetModelRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -372,7 +381,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetModelRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -391,10 +403,10 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateModelRequest() ); request.model ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateModelRequest', [ - 'model', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateModelRequest', + ['model', 'name'] + ); request.model.name = defaultValue1; const expectedHeaderRequestParams = `model.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -423,10 +435,10 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateModelRequest() ); request.model ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateModelRequest', [ - 'model', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateModelRequest', + ['model', 'name'] + ); request.model.name = defaultValue1; const expectedHeaderRequestParams = `model.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -471,10 +483,10 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateModelRequest() ); request.model ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateModelRequest', [ - 'model', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateModelRequest', + ['model', 'name'] + ); request.model.name = defaultValue1; const expectedHeaderRequestParams = `model.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -503,10 +515,10 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateModelRequest() ); request.model ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateModelRequest', [ - 'model', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateModelRequest', + ['model', 'name'] + ); request.model.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -524,9 +536,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest() ); - const defaultValue1 = getTypeDefaultValue('MergeVersionAliasesRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -555,9 +568,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest() ); - const defaultValue1 = getTypeDefaultValue('MergeVersionAliasesRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -601,9 +615,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest() ); - const defaultValue1 = getTypeDefaultValue('MergeVersionAliasesRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -631,9 +646,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest() ); - const defaultValue1 = getTypeDefaultValue('MergeVersionAliasesRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -652,7 +668,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ImportModelEvaluationRequest', + '.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest', ['parent'] ); request.parent = defaultValue1; @@ -684,7 +700,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ImportModelEvaluationRequest', + '.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest', ['parent'] ); request.parent = defaultValue1; @@ -731,7 +747,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ImportModelEvaluationRequest', + '.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest', ['parent'] ); request.parent = defaultValue1; @@ -765,7 +781,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ImportModelEvaluationRequest', + '.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest', ['parent'] ); request.parent = defaultValue1; @@ -789,7 +805,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchImportModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -821,7 +837,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchImportModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -868,7 +884,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchImportModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -902,7 +918,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchImportModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -925,9 +941,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelEvaluationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -956,9 +973,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelEvaluationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1002,9 +1020,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelEvaluationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1032,9 +1051,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest() ); - const defaultValue1 = getTypeDefaultValue('GetModelEvaluationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1053,7 +1073,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelEvaluationSliceRequest', + '.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest', ['name'] ); request.name = defaultValue1; @@ -1085,7 +1105,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelEvaluationSliceRequest', + '.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest', ['name'] ); request.name = defaultValue1; @@ -1132,7 +1152,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelEvaluationSliceRequest', + '.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest', ['name'] ); request.name = defaultValue1; @@ -1166,7 +1186,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetModelEvaluationSliceRequest', + '.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest', ['name'] ); request.name = defaultValue1; @@ -1189,9 +1209,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UploadModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UploadModelRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UploadModelRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1220,9 +1241,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UploadModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UploadModelRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UploadModelRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1273,9 +1295,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UploadModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UploadModelRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UploadModelRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1303,9 +1326,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.UploadModelRequest() ); - const defaultValue1 = getTypeDefaultValue('UploadModelRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UploadModelRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1376,7 +1400,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest() ); const defaultValue1 = getTypeDefaultValue( - 'UpdateExplanationDatasetRequest', + '.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest', ['model'] ); request.model = defaultValue1; @@ -1409,7 +1433,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest() ); const defaultValue1 = getTypeDefaultValue( - 'UpdateExplanationDatasetRequest', + '.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest', ['model'] ); request.model = defaultValue1; @@ -1463,7 +1487,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest() ); const defaultValue1 = getTypeDefaultValue( - 'UpdateExplanationDatasetRequest', + '.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest', ['model'] ); request.model = defaultValue1; @@ -1497,7 +1521,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest() ); const defaultValue1 = getTypeDefaultValue( - 'UpdateExplanationDatasetRequest', + '.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest', ['model'] ); request.model = defaultValue1; @@ -1573,7 +1597,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1602,7 +1629,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1653,7 +1683,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1681,7 +1714,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteModelRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1751,9 +1787,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelVersionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1783,9 +1820,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelVersionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1836,9 +1874,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelVersionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1866,9 +1905,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteModelVersionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1941,7 +1981,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExportModelRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExportModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1970,7 +2013,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExportModelRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExportModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2021,7 +2067,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExportModelRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExportModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2049,7 +2098,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExportModelRequest() ); - const defaultValue1 = getTypeDefaultValue('ExportModelRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExportModelRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2119,9 +2171,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2157,9 +2210,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2211,9 +2265,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2241,9 +2296,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2300,9 +2356,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2350,9 +2407,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2398,9 +2456,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2441,9 +2500,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = [ @@ -2479,9 +2539,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = [ @@ -2533,9 +2594,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2563,9 +2625,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = [ @@ -2622,9 +2685,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2670,9 +2734,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = [ @@ -2718,9 +2783,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelVersionsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2759,9 +2825,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2798,9 +2865,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2854,9 +2922,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2884,9 +2953,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2946,9 +3016,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2997,9 +3068,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3046,9 +3118,10 @@ describe('v1beta1.ModelServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListModelEvaluationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3089,7 +3162,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -3129,7 +3202,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -3186,7 +3259,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -3220,7 +3293,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -3289,7 +3362,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -3347,7 +3420,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; @@ -3401,7 +3474,7 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListModelEvaluationSlicesRequest', + '.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest', ['parent'] ); request.parent = defaultValue1; 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 34bf3190175..06f68df61b8 100644 --- a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts @@ -276,7 +276,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTrainingPipelineRequest', + '.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest', ['parent'] ); request.parent = defaultValue1; @@ -308,7 +308,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTrainingPipelineRequest', + '.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest', ['parent'] ); request.parent = defaultValue1; @@ -355,7 +355,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTrainingPipelineRequest', + '.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest', ['parent'] ); request.parent = defaultValue1; @@ -389,7 +389,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTrainingPipelineRequest', + '.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest', ['parent'] ); request.parent = defaultValue1; @@ -412,9 +412,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTrainingPipelineRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrainingPipelineRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTrainingPipelineRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -443,9 +444,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTrainingPipelineRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrainingPipelineRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTrainingPipelineRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -489,9 +491,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTrainingPipelineRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrainingPipelineRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTrainingPipelineRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -519,9 +522,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTrainingPipelineRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrainingPipelineRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTrainingPipelineRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -540,7 +544,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelTrainingPipelineRequest', + '.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -572,7 +576,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelTrainingPipelineRequest', + '.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -619,7 +623,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelTrainingPipelineRequest', + '.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -653,7 +657,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelTrainingPipelineRequest', + '.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -676,9 +680,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreatePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePipelineJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreatePipelineJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -706,9 +711,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreatePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePipelineJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreatePipelineJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -752,9 +758,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreatePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePipelineJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreatePipelineJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -782,9 +789,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreatePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePipelineJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreatePipelineJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -802,9 +810,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -832,9 +841,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -878,9 +888,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -908,9 +919,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -928,9 +940,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CancelPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CancelPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -958,9 +971,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CancelPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CancelPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1004,9 +1018,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CancelPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CancelPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1034,9 +1049,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CancelPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CancelPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1055,7 +1071,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTrainingPipelineRequest', + '.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -1088,7 +1104,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTrainingPipelineRequest', + '.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -1142,7 +1158,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTrainingPipelineRequest', + '.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -1176,7 +1192,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTrainingPipelineRequest', + '.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -1251,9 +1267,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeletePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeletePipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1283,9 +1300,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeletePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeletePipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1336,9 +1354,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeletePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeletePipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1366,9 +1385,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeletePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeletePipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1442,7 +1462,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1482,7 +1502,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1539,7 +1559,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1573,7 +1593,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1640,7 +1660,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1696,7 +1716,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1750,7 +1770,7 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1796,9 +1816,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1834,9 +1855,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1888,9 +1910,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1918,9 +1941,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1977,9 +2001,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2025,9 +2050,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2073,9 +2099,10 @@ describe('v1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts index 059c1e059ea..e015b8ee381 100644 --- a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts @@ -276,7 +276,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTrainingPipelineRequest', + '.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest', ['parent'] ); request.parent = defaultValue1; @@ -308,7 +308,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTrainingPipelineRequest', + '.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest', ['parent'] ); request.parent = defaultValue1; @@ -355,7 +355,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTrainingPipelineRequest', + '.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest', ['parent'] ); request.parent = defaultValue1; @@ -389,7 +389,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTrainingPipelineRequest', + '.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest', ['parent'] ); request.parent = defaultValue1; @@ -412,9 +412,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrainingPipelineRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -443,9 +444,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrainingPipelineRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -489,9 +491,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrainingPipelineRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -519,9 +522,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrainingPipelineRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -540,7 +544,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelTrainingPipelineRequest', + '.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -572,7 +576,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelTrainingPipelineRequest', + '.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -619,7 +623,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelTrainingPipelineRequest', + '.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -653,7 +657,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelTrainingPipelineRequest', + '.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -676,9 +680,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePipelineJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -706,9 +711,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePipelineJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -752,9 +758,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePipelineJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -782,9 +789,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePipelineJobRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -802,9 +810,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -832,9 +841,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -878,9 +888,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -908,9 +919,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -928,9 +940,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -958,9 +971,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1004,9 +1018,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1034,9 +1049,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelPipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1055,7 +1071,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTrainingPipelineRequest', + '.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -1088,7 +1104,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTrainingPipelineRequest', + '.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -1142,7 +1158,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTrainingPipelineRequest', + '.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -1176,7 +1192,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTrainingPipelineRequest', + '.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest', ['name'] ); request.name = defaultValue1; @@ -1251,9 +1267,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1283,9 +1300,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1336,9 +1354,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1366,9 +1385,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePipelineJobRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1442,7 +1462,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1482,7 +1502,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1539,7 +1559,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1573,7 +1593,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1642,7 +1662,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1700,7 +1720,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1754,7 +1774,7 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTrainingPipelinesRequest', + '.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1800,9 +1820,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1838,9 +1859,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1894,9 +1916,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1924,9 +1947,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1984,9 +2008,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2033,9 +2058,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2082,9 +2108,10 @@ describe('v1beta1.PipelineServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPipelineJobsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); 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 15792681729..2b3d8d1bdd3 100644 --- a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts @@ -23,12 +23,7 @@ import {SinonStub} from 'sinon'; import {describe, it} from 'mocha'; import * as predictionserviceModule from '../src'; -import { - protobuf, - operationsProtos, - IamProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, IamProtos, LocationProtos} from 'google-gax'; // Dynamically loaded proto JSON is needed to get the type information // to fill in default values for request objects @@ -202,7 +197,10 @@ describe('v1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PredictRequest() ); - const defaultValue1 = getTypeDefaultValue('PredictRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -230,7 +228,10 @@ describe('v1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PredictRequest() ); - const defaultValue1 = getTypeDefaultValue('PredictRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -274,7 +275,10 @@ describe('v1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PredictRequest() ); - const defaultValue1 = getTypeDefaultValue('PredictRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -299,7 +303,10 @@ describe('v1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.PredictRequest() ); - const defaultValue1 = getTypeDefaultValue('PredictRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.PredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -317,9 +324,10 @@ describe('v1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.RawPredictRequest() ); - const defaultValue1 = getTypeDefaultValue('RawPredictRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.RawPredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -347,9 +355,10 @@ describe('v1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.RawPredictRequest() ); - const defaultValue1 = getTypeDefaultValue('RawPredictRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.RawPredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -390,9 +399,10 @@ describe('v1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.RawPredictRequest() ); - const defaultValue1 = getTypeDefaultValue('RawPredictRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.RawPredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -420,9 +430,10 @@ describe('v1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.RawPredictRequest() ); - const defaultValue1 = getTypeDefaultValue('RawPredictRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.RawPredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -440,7 +451,10 @@ describe('v1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExplainRequest() ); - const defaultValue1 = getTypeDefaultValue('ExplainRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExplainRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -468,7 +482,10 @@ describe('v1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExplainRequest() ); - const defaultValue1 = getTypeDefaultValue('ExplainRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExplainRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -512,7 +529,10 @@ describe('v1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExplainRequest() ); - const defaultValue1 = getTypeDefaultValue('ExplainRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExplainRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -537,7 +557,10 @@ describe('v1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ExplainRequest() ); - const defaultValue1 = getTypeDefaultValue('ExplainRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ExplainRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1066,311 +1089,6 @@ describe('v1.PredictionServiceClient', () => { ); }); }); - describe('getOperation', () => { - it('invokes getOperation without error', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const response = await client.getOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.getOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes getOperation without error using callback', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - client.operationsClient.getOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.getOperation( - request, - undefined, - ( - err?: Error | null, - result?: operationsProtos.google.longrunning.Operation | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - it('invokes getOperation with error', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.getOperation(request); - }, expectedError); - assert( - (client.operationsClient.getOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('cancelOperation', () => { - it('invokes cancelOperation without error', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.cancelOperation = - stubSimpleCall(expectedResponse); - const response = await client.cancelOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes cancelOperation without error using callback', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.cancelOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.cancelOperation( - request, - undefined, - ( - err?: Error | null, - result?: protos.google.protobuf.Empty | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); - }); - it('invokes cancelOperation with error', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.cancelOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.cancelOperation(request); - }, expectedError); - assert( - (client.operationsClient.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('deleteOperation', () => { - it('invokes deleteOperation without error', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.deleteOperation = - stubSimpleCall(expectedResponse); - const response = await client.deleteOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.deleteOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes deleteOperation without error using callback', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.deleteOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.deleteOperation( - request, - undefined, - ( - err?: Error | null, - result?: protos.google.protobuf.Empty | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); - }); - it('invokes deleteOperation with error', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.deleteOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.deleteOperation(request); - }, expectedError); - assert( - (client.operationsClient.deleteOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('listOperationsAsync', () => { - it('uses async iteration with listOperations without error', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsRequest() - ); - const expectedResponse = [ - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - ]; - client.operationsClient.descriptor.listOperations.asyncIterate = - stubAsyncIterationCall(expectedResponse); - const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = - []; - const iterable = client.operationsClient.listOperationsAsync(request); - for await (const resource of iterable) { - responses.push(resource!); - } - assert.deepStrictEqual(responses, expectedResponse); - assert.deepStrictEqual( - ( - client.operationsClient.descriptor.listOperations - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - it('uses async iteration with listOperations with error', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.descriptor.listOperations.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.operationsClient.listOperationsAsync(request); - await assert.rejects(async () => { - const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = - []; - for await (const resource of iterable) { - responses.push(resource!); - } - }); - assert.deepStrictEqual( - ( - client.operationsClient.descriptor.listOperations - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - }); describe('Path templates', () => { describe('annotation', () => { diff --git a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts index d442dcea0e4..7b17634ca14 100644 --- a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts @@ -23,12 +23,7 @@ import {SinonStub} from 'sinon'; import {describe, it} from 'mocha'; import * as predictionserviceModule from '../src'; -import { - protobuf, - operationsProtos, - IamProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, IamProtos, LocationProtos} from 'google-gax'; // Dynamically loaded proto JSON is needed to get the type information // to fill in default values for request objects @@ -210,7 +205,10 @@ describe('v1beta1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PredictRequest() ); - const defaultValue1 = getTypeDefaultValue('PredictRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -239,7 +237,10 @@ describe('v1beta1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PredictRequest() ); - const defaultValue1 = getTypeDefaultValue('PredictRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -284,7 +285,10 @@ describe('v1beta1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PredictRequest() ); - const defaultValue1 = getTypeDefaultValue('PredictRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -310,7 +314,10 @@ describe('v1beta1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.PredictRequest() ); - const defaultValue1 = getTypeDefaultValue('PredictRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.PredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -329,9 +336,10 @@ describe('v1beta1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() ); - const defaultValue1 = getTypeDefaultValue('RawPredictRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.RawPredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -360,9 +368,10 @@ describe('v1beta1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() ); - const defaultValue1 = getTypeDefaultValue('RawPredictRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.RawPredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -404,9 +413,10 @@ describe('v1beta1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() ); - const defaultValue1 = getTypeDefaultValue('RawPredictRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.RawPredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -435,9 +445,10 @@ describe('v1beta1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() ); - const defaultValue1 = getTypeDefaultValue('RawPredictRequest', [ - 'endpoint', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.RawPredictRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -456,7 +467,10 @@ describe('v1beta1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() ); - const defaultValue1 = getTypeDefaultValue('ExplainRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExplainRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -485,7 +499,10 @@ describe('v1beta1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() ); - const defaultValue1 = getTypeDefaultValue('ExplainRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExplainRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -530,7 +547,10 @@ describe('v1beta1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() ); - const defaultValue1 = getTypeDefaultValue('ExplainRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExplainRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; const expectedError = new Error('expected'); @@ -556,7 +576,10 @@ describe('v1beta1.PredictionServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() ); - const defaultValue1 = getTypeDefaultValue('ExplainRequest', ['endpoint']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ExplainRequest', + ['endpoint'] + ); request.endpoint = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1099,322 +1122,6 @@ describe('v1beta1.PredictionServiceClient', () => { ); }); }); - describe('getOperation', () => { - it('invokes getOperation without error', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const response = await client.getOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.getOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes getOperation without error using callback', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - client.operationsClient.getOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.getOperation( - request, - undefined, - ( - err?: Error | null, - result?: operationsProtos.google.longrunning.Operation | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - it('invokes getOperation with error', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.getOperation(request); - }, expectedError); - assert( - (client.operationsClient.getOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('cancelOperation', () => { - it('invokes cancelOperation without error', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.cancelOperation = - stubSimpleCall(expectedResponse); - const response = await client.cancelOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes cancelOperation without error using callback', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.cancelOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.cancelOperation( - request, - undefined, - ( - err?: Error | null, - result?: protos.google.protobuf.Empty | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); - }); - it('invokes cancelOperation with error', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.cancelOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.cancelOperation(request); - }, expectedError); - assert( - (client.operationsClient.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('deleteOperation', () => { - it('invokes deleteOperation without error', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.deleteOperation = - stubSimpleCall(expectedResponse); - const response = await client.deleteOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.deleteOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes deleteOperation without error using callback', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.deleteOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.deleteOperation( - request, - undefined, - ( - err?: Error | null, - result?: protos.google.protobuf.Empty | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); - }); - it('invokes deleteOperation with error', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.deleteOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.deleteOperation(request); - }, expectedError); - assert( - (client.operationsClient.deleteOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('listOperationsAsync', () => { - it('uses async iteration with listOperations without error', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsRequest() - ); - const expectedResponse = [ - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - ]; - client.operationsClient.descriptor.listOperations.asyncIterate = - stubAsyncIterationCall(expectedResponse); - const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = - []; - const iterable = client.operationsClient.listOperationsAsync(request); - for await (const resource of iterable) { - responses.push(resource!); - } - assert.deepStrictEqual(responses, expectedResponse); - assert.deepStrictEqual( - ( - client.operationsClient.descriptor.listOperations - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - it('uses async iteration with listOperations with error', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.descriptor.listOperations.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.operationsClient.listOperationsAsync(request); - await assert.rejects(async () => { - const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = - []; - for await (const resource of iterable) { - responses.push(resource!); - } - }); - assert.deepStrictEqual( - ( - client.operationsClient.descriptor.listOperations - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - }); describe('Path templates', () => { describe('annotation', () => { 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 c1c91378982..8a55e992106 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 @@ -284,9 +284,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -315,9 +316,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -362,9 +364,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -393,9 +396,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -414,9 +418,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSpecialistPoolRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -447,9 +452,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSpecialistPoolRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -501,9 +507,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSpecialistPoolRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -532,9 +539,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSpecialistPoolRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -610,9 +618,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -643,9 +652,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -697,9 +707,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -728,9 +739,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -807,10 +819,10 @@ describe('v1.SpecialistPoolServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest() ); request.specialistPool ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSpecialistPoolRequest', [ - 'specialistPool', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest', + ['specialistPool', 'name'] + ); request.specialistPool.name = defaultValue1; const expectedHeaderRequestParams = `specialist_pool.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -842,10 +854,10 @@ describe('v1.SpecialistPoolServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest() ); request.specialistPool ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSpecialistPoolRequest', [ - 'specialistPool', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest', + ['specialistPool', 'name'] + ); request.specialistPool.name = defaultValue1; const expectedHeaderRequestParams = `specialist_pool.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -898,10 +910,10 @@ describe('v1.SpecialistPoolServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest() ); request.specialistPool ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSpecialistPoolRequest', [ - 'specialistPool', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest', + ['specialistPool', 'name'] + ); request.specialistPool.name = defaultValue1; const expectedHeaderRequestParams = `specialist_pool.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -931,10 +943,10 @@ describe('v1.SpecialistPoolServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest() ); request.specialistPool ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSpecialistPoolRequest', [ - 'specialistPool', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest', + ['specialistPool', 'name'] + ); request.specialistPool.name = defaultValue1; const expectedHeaderRequestParams = `specialist_pool.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1010,9 +1022,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1050,9 +1063,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1105,9 +1119,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1136,9 +1151,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1197,9 +1213,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1247,9 +1264,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1296,9 +1314,10 @@ describe('v1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1beta1.ts index 6317c3d7c25..e640445eff1 100644 --- a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1beta1.ts @@ -286,9 +286,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -317,9 +318,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -364,9 +366,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -395,9 +398,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -416,9 +420,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSpecialistPoolRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -449,9 +454,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSpecialistPoolRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -503,9 +509,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSpecialistPoolRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -534,9 +541,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSpecialistPoolRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -612,9 +620,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -645,9 +654,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -699,9 +709,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -730,9 +741,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteSpecialistPoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -809,10 +821,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest() ); request.specialistPool ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSpecialistPoolRequest', [ - 'specialistPool', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest', + ['specialistPool', 'name'] + ); request.specialistPool.name = defaultValue1; const expectedHeaderRequestParams = `specialist_pool.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -844,10 +856,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest() ); request.specialistPool ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSpecialistPoolRequest', [ - 'specialistPool', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest', + ['specialistPool', 'name'] + ); request.specialistPool.name = defaultValue1; const expectedHeaderRequestParams = `specialist_pool.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -900,10 +912,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest() ); request.specialistPool ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSpecialistPoolRequest', [ - 'specialistPool', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest', + ['specialistPool', 'name'] + ); request.specialistPool.name = defaultValue1; const expectedHeaderRequestParams = `specialist_pool.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -933,10 +945,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest() ); request.specialistPool ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSpecialistPoolRequest', [ - 'specialistPool', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest', + ['specialistPool', 'name'] + ); request.specialistPool.name = defaultValue1; const expectedHeaderRequestParams = `specialist_pool.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1012,9 +1024,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1052,9 +1065,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1109,9 +1123,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1140,9 +1155,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1201,9 +1217,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1251,9 +1268,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1301,9 +1319,10 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSpecialistPoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts index b02dfee54a3..fc1b7599dad 100644 --- a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts @@ -296,9 +296,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -326,9 +327,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -372,9 +374,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -402,9 +405,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -423,7 +427,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest', ['parent'] ); request.parent = defaultValue1; @@ -455,7 +459,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest', ['parent'] ); request.parent = defaultValue1; @@ -502,7 +506,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest', ['parent'] ); request.parent = defaultValue1; @@ -536,7 +540,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest', ['parent'] ); request.parent = defaultValue1; @@ -560,7 +564,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -592,7 +596,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -639,7 +643,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -673,7 +677,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -698,7 +702,7 @@ describe('v1.TensorboardServiceClient', () => { ); request.tensorboardExperiment ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest', ['tensorboardExperiment', 'name'] ); request.tensorboardExperiment.name = defaultValue1; @@ -731,7 +735,7 @@ describe('v1.TensorboardServiceClient', () => { ); request.tensorboardExperiment ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest', ['tensorboardExperiment', 'name'] ); request.tensorboardExperiment.name = defaultValue1; @@ -779,7 +783,7 @@ describe('v1.TensorboardServiceClient', () => { ); request.tensorboardExperiment ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest', ['tensorboardExperiment', 'name'] ); request.tensorboardExperiment.name = defaultValue1; @@ -814,7 +818,7 @@ describe('v1.TensorboardServiceClient', () => { ); request.tensorboardExperiment ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest', ['tensorboardExperiment', 'name'] ); request.tensorboardExperiment.name = defaultValue1; @@ -837,9 +841,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRunRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateTensorboardRunRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -868,9 +873,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRunRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateTensorboardRunRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -914,9 +920,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRunRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateTensorboardRunRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -944,9 +951,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRunRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateTensorboardRunRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -965,7 +973,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardRunsRequest', + '.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest', ['parent'] ); request.parent = defaultValue1; @@ -997,7 +1005,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardRunsRequest', + '.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest', ['parent'] ); request.parent = defaultValue1; @@ -1044,7 +1052,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardRunsRequest', + '.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest', ['parent'] ); request.parent = defaultValue1; @@ -1078,7 +1086,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardRunsRequest', + '.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest', ['parent'] ); request.parent = defaultValue1; @@ -1101,9 +1109,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1131,9 +1140,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1177,9 +1187,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1207,9 +1218,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1228,10 +1240,10 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest() ); request.tensorboardRun ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRunRequest', [ - 'tensorboardRun', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest', + ['tensorboardRun', 'name'] + ); request.tensorboardRun.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard_run.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1261,10 +1273,10 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest() ); request.tensorboardRun ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRunRequest', [ - 'tensorboardRun', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest', + ['tensorboardRun', 'name'] + ); request.tensorboardRun.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard_run.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1309,10 +1321,10 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest() ); request.tensorboardRun ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRunRequest', [ - 'tensorboardRun', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest', + ['tensorboardRun', 'name'] + ); request.tensorboardRun.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard_run.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1341,10 +1353,10 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest() ); request.tensorboardRun ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRunRequest', [ - 'tensorboardRun', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest', + ['tensorboardRun', 'name'] + ); request.tensorboardRun.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1363,7 +1375,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1395,7 +1407,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1442,7 +1454,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1476,7 +1488,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1500,7 +1512,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1532,7 +1544,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1579,7 +1591,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1613,7 +1625,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1637,7 +1649,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -1669,7 +1681,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -1716,7 +1728,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -1750,7 +1762,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -1775,7 +1787,7 @@ describe('v1.TensorboardServiceClient', () => { ); request.tensorboardTimeSeries ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest', ['tensorboardTimeSeries', 'name'] ); request.tensorboardTimeSeries.name = defaultValue1; @@ -1808,7 +1820,7 @@ describe('v1.TensorboardServiceClient', () => { ); request.tensorboardTimeSeries ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest', ['tensorboardTimeSeries', 'name'] ); request.tensorboardTimeSeries.name = defaultValue1; @@ -1856,7 +1868,7 @@ describe('v1.TensorboardServiceClient', () => { ); request.tensorboardTimeSeries ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest', ['tensorboardTimeSeries', 'name'] ); request.tensorboardTimeSeries.name = defaultValue1; @@ -1891,7 +1903,7 @@ describe('v1.TensorboardServiceClient', () => { ); request.tensorboardTimeSeries ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest', ['tensorboardTimeSeries', 'name'] ); request.tensorboardTimeSeries.name = defaultValue1; @@ -1915,7 +1927,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest', ['tensorboard'] ); request.tensorboard = defaultValue1; @@ -1949,7 +1961,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest', ['tensorboard'] ); request.tensorboard = defaultValue1; @@ -1996,7 +2008,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest', ['tensorboard'] ); request.tensorboard = defaultValue1; @@ -2030,7 +2042,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest', ['tensorboard'] ); request.tensorboard = defaultValue1; @@ -2054,7 +2066,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -2086,7 +2098,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -2133,7 +2145,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -2167,7 +2179,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -2191,7 +2203,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardExperimentDataRequest', + '.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest', ['tensorboardExperiment'] ); request.tensorboardExperiment = defaultValue1; @@ -2223,7 +2235,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardExperimentDataRequest', + '.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest', ['tensorboardExperiment'] ); request.tensorboardExperiment = defaultValue1; @@ -2270,7 +2282,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardExperimentDataRequest', + '.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest', ['tensorboardExperiment'] ); request.tensorboardExperiment = defaultValue1; @@ -2304,7 +2316,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardExperimentDataRequest', + '.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest', ['tensorboardExperiment'] ); request.tensorboardExperiment = defaultValue1; @@ -2328,7 +2340,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardRunDataRequest', + '.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest', ['tensorboardRun'] ); request.tensorboardRun = defaultValue1; @@ -2360,7 +2372,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardRunDataRequest', + '.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest', ['tensorboardRun'] ); request.tensorboardRun = defaultValue1; @@ -2407,7 +2419,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardRunDataRequest', + '.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest', ['tensorboardRun'] ); request.tensorboardRun = defaultValue1; @@ -2441,7 +2453,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardRunDataRequest', + '.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest', ['tensorboardRun'] ); request.tensorboardRun = defaultValue1; @@ -2464,9 +2476,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateTensorboardRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2496,9 +2509,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateTensorboardRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2549,9 +2563,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateTensorboardRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2579,9 +2594,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateTensorboardRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2655,10 +2671,10 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateTensorboardRequest() ); request.tensorboard ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRequest', [ - 'tensorboard', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateTensorboardRequest', + ['tensorboard', 'name'] + ); request.tensorboard.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2689,10 +2705,10 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateTensorboardRequest() ); request.tensorboard ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRequest', [ - 'tensorboard', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateTensorboardRequest', + ['tensorboard', 'name'] + ); request.tensorboard.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2744,10 +2760,10 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateTensorboardRequest() ); request.tensorboard ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRequest', [ - 'tensorboard', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateTensorboardRequest', + ['tensorboard', 'name'] + ); request.tensorboard.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2776,10 +2792,10 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.UpdateTensorboardRequest() ); request.tensorboard ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRequest', [ - 'tensorboard', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateTensorboardRequest', + ['tensorboard', 'name'] + ); request.tensorboard.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2852,9 +2868,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2884,9 +2901,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2937,9 +2955,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2967,9 +2986,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3043,7 +3063,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -3076,7 +3096,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -3130,7 +3150,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -3164,7 +3184,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -3240,9 +3260,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3272,9 +3293,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3325,9 +3347,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3355,9 +3378,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3431,7 +3455,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -3464,7 +3488,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -3518,7 +3542,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -3552,7 +3576,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -3629,7 +3653,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardBlobDataRequest', + '.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest', ['timeSeries'] ); request.timeSeries = defaultValue1; @@ -3675,7 +3699,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardBlobDataRequest', + '.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest', ['timeSeries'] ); request.timeSeries = defaultValue1; @@ -3720,7 +3744,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardBlobDataRequest', + '.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest', ['timeSeries'] ); request.timeSeries = defaultValue1; @@ -3754,9 +3778,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3792,9 +3817,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3846,9 +3872,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3876,9 +3903,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3935,9 +3963,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3983,9 +4012,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4031,9 +4061,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4073,7 +4104,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4113,7 +4144,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4170,7 +4201,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4204,7 +4235,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4273,7 +4304,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4331,7 +4362,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4385,7 +4416,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4431,9 +4462,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4470,9 +4502,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4524,9 +4557,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4554,9 +4588,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4614,9 +4649,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4663,9 +4699,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4711,9 +4748,10 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4754,7 +4792,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -4794,7 +4832,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -4851,7 +4889,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -4885,7 +4923,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -4954,7 +4992,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -5012,7 +5050,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -5066,7 +5104,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -5113,7 +5151,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -5153,7 +5191,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -5210,7 +5248,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -5244,7 +5282,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -5314,7 +5352,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -5373,7 +5411,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -5427,7 +5465,7 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; diff --git a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts index 338630225a6..22584782b02 100644 --- a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts @@ -305,9 +305,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -336,9 +337,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -383,9 +385,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -414,9 +417,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -436,7 +440,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest', ['parent'] ); request.parent = defaultValue1; @@ -469,7 +473,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest', ['parent'] ); request.parent = defaultValue1; @@ -517,7 +521,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest', ['parent'] ); request.parent = defaultValue1; @@ -552,7 +556,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest', ['parent'] ); request.parent = defaultValue1; @@ -577,7 +581,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -610,7 +614,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -658,7 +662,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -693,7 +697,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -719,7 +723,7 @@ describe('v1beta1.TensorboardServiceClient', () => { ); request.tensorboardExperiment ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest', ['tensorboardExperiment', 'name'] ); request.tensorboardExperiment.name = defaultValue1; @@ -753,7 +757,7 @@ describe('v1beta1.TensorboardServiceClient', () => { ); request.tensorboardExperiment ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest', ['tensorboardExperiment', 'name'] ); request.tensorboardExperiment.name = defaultValue1; @@ -802,7 +806,7 @@ describe('v1beta1.TensorboardServiceClient', () => { ); request.tensorboardExperiment ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest', ['tensorboardExperiment', 'name'] ); request.tensorboardExperiment.name = defaultValue1; @@ -838,7 +842,7 @@ describe('v1beta1.TensorboardServiceClient', () => { ); request.tensorboardExperiment ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest', ['tensorboardExperiment', 'name'] ); request.tensorboardExperiment.name = defaultValue1; @@ -862,9 +866,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRunRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -894,9 +899,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRunRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -941,9 +947,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRunRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -972,9 +979,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRunRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -994,7 +1002,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardRunsRequest', + '.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest', ['parent'] ); request.parent = defaultValue1; @@ -1027,7 +1035,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardRunsRequest', + '.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest', ['parent'] ); request.parent = defaultValue1; @@ -1075,7 +1083,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardRunsRequest', + '.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest', ['parent'] ); request.parent = defaultValue1; @@ -1110,7 +1118,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardRunsRequest', + '.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest', ['parent'] ); request.parent = defaultValue1; @@ -1134,9 +1142,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1165,9 +1174,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1212,9 +1222,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1243,9 +1254,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1265,10 +1277,10 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest() ); request.tensorboardRun ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRunRequest', [ - 'tensorboardRun', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest', + ['tensorboardRun', 'name'] + ); request.tensorboardRun.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard_run.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1299,10 +1311,10 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest() ); request.tensorboardRun ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRunRequest', [ - 'tensorboardRun', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest', + ['tensorboardRun', 'name'] + ); request.tensorboardRun.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard_run.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1348,10 +1360,10 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest() ); request.tensorboardRun ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRunRequest', [ - 'tensorboardRun', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest', + ['tensorboardRun', 'name'] + ); request.tensorboardRun.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard_run.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1381,10 +1393,10 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest() ); request.tensorboardRun ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRunRequest', [ - 'tensorboardRun', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest', + ['tensorboardRun', 'name'] + ); request.tensorboardRun.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1404,7 +1416,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1437,7 +1449,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1485,7 +1497,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1520,7 +1532,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchCreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1545,7 +1557,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1578,7 +1590,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1626,7 +1638,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1661,7 +1673,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -1686,7 +1698,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -1719,7 +1731,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -1767,7 +1779,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -1802,7 +1814,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -1828,7 +1840,7 @@ describe('v1beta1.TensorboardServiceClient', () => { ); request.tensorboardTimeSeries ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest', ['tensorboardTimeSeries', 'name'] ); request.tensorboardTimeSeries.name = defaultValue1; @@ -1862,7 +1874,7 @@ describe('v1beta1.TensorboardServiceClient', () => { ); request.tensorboardTimeSeries ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest', ['tensorboardTimeSeries', 'name'] ); request.tensorboardTimeSeries.name = defaultValue1; @@ -1911,7 +1923,7 @@ describe('v1beta1.TensorboardServiceClient', () => { ); request.tensorboardTimeSeries ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest', ['tensorboardTimeSeries', 'name'] ); request.tensorboardTimeSeries.name = defaultValue1; @@ -1947,7 +1959,7 @@ describe('v1beta1.TensorboardServiceClient', () => { ); request.tensorboardTimeSeries ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest', ['tensorboardTimeSeries', 'name'] ); request.tensorboardTimeSeries.name = defaultValue1; @@ -1972,7 +1984,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest', ['tensorboard'] ); request.tensorboard = defaultValue1; @@ -2007,7 +2019,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest', ['tensorboard'] ); request.tensorboard = defaultValue1; @@ -2055,7 +2067,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest', ['tensorboard'] ); request.tensorboard = defaultValue1; @@ -2090,7 +2102,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'BatchReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest', ['tensorboard'] ); request.tensorboard = defaultValue1; @@ -2115,7 +2127,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -2148,7 +2160,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -2196,7 +2208,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -2231,7 +2243,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -2256,7 +2268,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardExperimentDataRequest', + '.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest', ['tensorboardExperiment'] ); request.tensorboardExperiment = defaultValue1; @@ -2289,7 +2301,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardExperimentDataRequest', + '.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest', ['tensorboardExperiment'] ); request.tensorboardExperiment = defaultValue1; @@ -2337,7 +2349,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardExperimentDataRequest', + '.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest', ['tensorboardExperiment'] ); request.tensorboardExperiment = defaultValue1; @@ -2372,7 +2384,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardExperimentDataRequest', + '.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest', ['tensorboardExperiment'] ); request.tensorboardExperiment = defaultValue1; @@ -2397,7 +2409,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardRunDataRequest', + '.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest', ['tensorboardRun'] ); request.tensorboardRun = defaultValue1; @@ -2430,7 +2442,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardRunDataRequest', + '.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest', ['tensorboardRun'] ); request.tensorboardRun = defaultValue1; @@ -2478,7 +2490,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardRunDataRequest', + '.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest', ['tensorboardRun'] ); request.tensorboardRun = defaultValue1; @@ -2513,7 +2525,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'WriteTensorboardRunDataRequest', + '.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest', ['tensorboardRun'] ); request.tensorboardRun = defaultValue1; @@ -2537,9 +2549,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2570,9 +2583,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2624,9 +2638,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2655,9 +2670,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTensorboardRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2734,10 +2750,10 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest() ); request.tensorboard ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRequest', [ - 'tensorboard', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest', + ['tensorboard', 'name'] + ); request.tensorboard.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2769,10 +2785,10 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest() ); request.tensorboard ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRequest', [ - 'tensorboard', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest', + ['tensorboard', 'name'] + ); request.tensorboard.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2825,10 +2841,10 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest() ); request.tensorboard ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRequest', [ - 'tensorboard', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest', + ['tensorboard', 'name'] + ); request.tensorboard.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2858,10 +2874,10 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest() ); request.tensorboard ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateTensorboardRequest', [ - 'tensorboard', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest', + ['tensorboard', 'name'] + ); request.tensorboard.name = defaultValue1; const expectedHeaderRequestParams = `tensorboard.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2937,9 +2953,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2970,9 +2987,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3024,9 +3042,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3055,9 +3074,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3134,7 +3154,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -3168,7 +3188,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -3223,7 +3243,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -3258,7 +3278,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardExperimentRequest', + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest', ['name'] ); request.name = defaultValue1; @@ -3337,9 +3357,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3370,9 +3391,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3424,9 +3446,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3455,9 +3478,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTensorboardRunRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3534,7 +3558,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -3568,7 +3592,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -3623,7 +3647,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -3658,7 +3682,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest', ['name'] ); request.name = defaultValue1; @@ -3738,7 +3762,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardBlobDataRequest', + '.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest', ['timeSeries'] ); request.timeSeries = defaultValue1; @@ -3785,7 +3809,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardBlobDataRequest', + '.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest', ['timeSeries'] ); request.timeSeries = defaultValue1; @@ -3831,7 +3855,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ReadTensorboardBlobDataRequest', + '.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest', ['timeSeries'] ); request.timeSeries = defaultValue1; @@ -3866,9 +3890,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3905,9 +3930,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3962,9 +3988,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3993,9 +4020,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4054,9 +4082,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4104,9 +4133,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4154,9 +4184,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4198,7 +4229,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4239,7 +4270,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4297,7 +4328,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4332,7 +4363,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4402,7 +4433,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4461,7 +4492,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4516,7 +4547,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardExperimentsRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4563,9 +4594,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4603,9 +4635,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4660,9 +4693,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4691,9 +4725,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4752,9 +4787,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4802,9 +4838,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4852,9 +4889,10 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTensorboardRunsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4896,7 +4934,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -4937,7 +4975,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -4995,7 +5033,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -5030,7 +5068,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -5100,7 +5138,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -5159,7 +5197,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -5214,7 +5252,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListTensorboardTimeSeriesRequest', + '.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest', ['parent'] ); request.parent = defaultValue1; @@ -5262,7 +5300,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -5303,7 +5341,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -5361,7 +5399,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -5396,7 +5434,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -5469,7 +5507,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -5531,7 +5569,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; @@ -5586,7 +5624,7 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ExportTensorboardTimeSeriesDataRequest', + '.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest', ['tensorboardTimeSeries'] ); request.tensorboardTimeSeries = defaultValue1; diff --git a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts index 4d9f5dfcf55..f31e7621466 100644 --- a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts @@ -275,9 +275,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -305,9 +306,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -351,9 +353,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -381,9 +384,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -401,7 +405,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -429,7 +436,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -473,7 +483,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -498,7 +511,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -516,7 +532,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -544,7 +563,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -588,7 +610,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -616,7 +641,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -634,9 +662,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.LookupStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('LookupStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.LookupStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -664,9 +693,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.LookupStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('LookupStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.LookupStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -710,9 +740,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.LookupStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('LookupStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.LookupStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -740,9 +771,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.LookupStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('LookupStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.LookupStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -760,9 +792,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTrialRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateTrialRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -790,9 +823,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTrialRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateTrialRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -836,9 +870,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTrialRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateTrialRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -866,9 +901,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CreateTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTrialRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateTrialRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -886,7 +922,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -914,7 +953,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -958,7 +1000,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -983,7 +1028,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.GetTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1001,9 +1049,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.AddTrialMeasurementRequest() ); - const defaultValue1 = getTypeDefaultValue('AddTrialMeasurementRequest', [ - 'trialName', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.AddTrialMeasurementRequest', + ['trialName'] + ); request.trialName = defaultValue1; const expectedHeaderRequestParams = `trial_name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1032,9 +1081,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.AddTrialMeasurementRequest() ); - const defaultValue1 = getTypeDefaultValue('AddTrialMeasurementRequest', [ - 'trialName', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.AddTrialMeasurementRequest', + ['trialName'] + ); request.trialName = defaultValue1; const expectedHeaderRequestParams = `trial_name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1078,9 +1128,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.AddTrialMeasurementRequest() ); - const defaultValue1 = getTypeDefaultValue('AddTrialMeasurementRequest', [ - 'trialName', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.AddTrialMeasurementRequest', + ['trialName'] + ); request.trialName = defaultValue1; const expectedHeaderRequestParams = `trial_name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1108,9 +1159,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.AddTrialMeasurementRequest() ); - const defaultValue1 = getTypeDefaultValue('AddTrialMeasurementRequest', [ - 'trialName', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.AddTrialMeasurementRequest', + ['trialName'] + ); request.trialName = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1128,9 +1180,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CompleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CompleteTrialRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CompleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1158,9 +1211,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CompleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CompleteTrialRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CompleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1204,9 +1258,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CompleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CompleteTrialRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CompleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1234,9 +1289,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.CompleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CompleteTrialRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CompleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1254,7 +1310,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1282,7 +1341,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1326,7 +1388,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1354,7 +1419,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.DeleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1372,7 +1440,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.StopTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('StopTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.StopTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1400,7 +1471,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.StopTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('StopTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.StopTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1444,7 +1518,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.StopTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('StopTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.StopTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1469,7 +1546,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.StopTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('StopTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.StopTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1487,9 +1567,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListOptimalTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListOptimalTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListOptimalTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1517,9 +1598,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListOptimalTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListOptimalTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListOptimalTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1563,9 +1645,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListOptimalTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListOptimalTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListOptimalTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1593,9 +1676,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListOptimalTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListOptimalTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListOptimalTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1613,9 +1697,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.SuggestTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('SuggestTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SuggestTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1645,9 +1730,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.SuggestTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('SuggestTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SuggestTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1698,9 +1784,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.SuggestTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('SuggestTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SuggestTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1728,9 +1815,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.SuggestTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('SuggestTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SuggestTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1804,7 +1892,7 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CheckTrialEarlyStoppingStateRequest', + '.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest', ['trialName'] ); request.trialName = defaultValue1; @@ -1837,7 +1925,7 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CheckTrialEarlyStoppingStateRequest', + '.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest', ['trialName'] ); request.trialName = defaultValue1; @@ -1891,7 +1979,7 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CheckTrialEarlyStoppingStateRequest', + '.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest', ['trialName'] ); request.trialName = defaultValue1; @@ -1925,7 +2013,7 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CheckTrialEarlyStoppingStateRequest', + '.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest', ['trialName'] ); request.trialName = defaultValue1; @@ -2001,9 +2089,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2033,9 +2122,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2081,9 +2171,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2111,9 +2202,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2164,9 +2256,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2214,9 +2307,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2256,9 +2350,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2299,9 +2394,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2331,9 +2427,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2379,9 +2476,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2409,9 +2507,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2462,9 +2561,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2512,9 +2612,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2554,9 +2655,10 @@ describe('v1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts index 2a7ca064b83..efcdae79b53 100644 --- a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts @@ -275,9 +275,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -305,9 +306,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -351,9 +353,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -381,9 +384,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -401,7 +405,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -429,7 +436,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -473,7 +483,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -498,7 +511,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -516,7 +532,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -544,7 +563,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -588,7 +610,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -616,7 +641,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteStudyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteStudyRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -634,9 +662,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.LookupStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('LookupStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.LookupStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -664,9 +693,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.LookupStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('LookupStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.LookupStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -710,9 +740,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.LookupStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('LookupStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.LookupStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -740,9 +771,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.LookupStudyRequest() ); - const defaultValue1 = getTypeDefaultValue('LookupStudyRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.LookupStudyRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -760,9 +792,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTrialRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateTrialRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -790,9 +823,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTrialRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateTrialRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -836,9 +870,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTrialRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateTrialRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -866,9 +901,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CreateTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateTrialRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateTrialRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -886,7 +922,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -914,7 +953,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -958,7 +1000,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -983,7 +1028,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.GetTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('GetTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1001,9 +1049,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest() ); - const defaultValue1 = getTypeDefaultValue('AddTrialMeasurementRequest', [ - 'trialName', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest', + ['trialName'] + ); request.trialName = defaultValue1; const expectedHeaderRequestParams = `trial_name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1032,9 +1081,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest() ); - const defaultValue1 = getTypeDefaultValue('AddTrialMeasurementRequest', [ - 'trialName', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest', + ['trialName'] + ); request.trialName = defaultValue1; const expectedHeaderRequestParams = `trial_name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1078,9 +1128,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest() ); - const defaultValue1 = getTypeDefaultValue('AddTrialMeasurementRequest', [ - 'trialName', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest', + ['trialName'] + ); request.trialName = defaultValue1; const expectedHeaderRequestParams = `trial_name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1108,9 +1159,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest() ); - const defaultValue1 = getTypeDefaultValue('AddTrialMeasurementRequest', [ - 'trialName', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest', + ['trialName'] + ); request.trialName = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1128,9 +1180,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CompleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CompleteTrialRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CompleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1158,9 +1211,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CompleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CompleteTrialRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CompleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1204,9 +1258,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CompleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CompleteTrialRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CompleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1234,9 +1289,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.CompleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('CompleteTrialRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CompleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1254,7 +1310,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1282,7 +1341,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1326,7 +1388,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1354,7 +1419,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.DeleteTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1372,7 +1440,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.StopTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('StopTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.StopTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1400,7 +1471,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.StopTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('StopTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.StopTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1444,7 +1518,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.StopTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('StopTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.StopTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1469,7 +1546,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.StopTrialRequest() ); - const defaultValue1 = getTypeDefaultValue('StopTrialRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.StopTrialRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1487,9 +1567,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListOptimalTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1517,9 +1598,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListOptimalTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1563,9 +1645,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListOptimalTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1593,9 +1676,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListOptimalTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1613,9 +1697,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('SuggestTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1645,9 +1730,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('SuggestTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1698,9 +1784,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('SuggestTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1728,9 +1815,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('SuggestTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1804,7 +1892,7 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CheckTrialEarlyStoppingStateRequest', + '.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest', ['trialName'] ); request.trialName = defaultValue1; @@ -1837,7 +1925,7 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CheckTrialEarlyStoppingStateRequest', + '.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest', ['trialName'] ); request.trialName = defaultValue1; @@ -1891,7 +1979,7 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CheckTrialEarlyStoppingStateRequest', + '.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest', ['trialName'] ); request.trialName = defaultValue1; @@ -1925,7 +2013,7 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CheckTrialEarlyStoppingStateRequest', + '.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest', ['trialName'] ); request.trialName = defaultValue1; @@ -2001,9 +2089,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2039,9 +2128,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2093,9 +2183,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2123,9 +2214,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2182,9 +2274,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2232,9 +2325,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2280,9 +2374,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListStudiesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListStudiesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListStudiesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2323,9 +2418,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2361,9 +2457,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2415,9 +2512,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2445,9 +2543,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2504,9 +2603,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2554,9 +2654,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2602,9 +2703,10 @@ describe('v1beta1.VizierServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ListTrialsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListTrialsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListTrialsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected');