diff --git a/protos/google/cloud/aiplatform/v1/dataset_service.proto b/protos/google/cloud/aiplatform/v1/dataset_service.proto index 71b332a8..c26f60e3 100644 --- a/protos/google/cloud/aiplatform/v1/dataset_service.proto +++ b/protos/google/cloud/aiplatform/v1/dataset_service.proto @@ -399,8 +399,7 @@ message ListSavedQueriesRequest { // Response message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries]. message ListSavedQueriesResponse { - // A list of SavedQueries that matches the specified filter in the - // request. + // A list of SavedQueries that match the specified filter in the request. repeated SavedQuery saved_queries = 1; // The standard List next-page token. diff --git a/protos/google/cloud/aiplatform/v1/explanation.proto b/protos/google/cloud/aiplatform/v1/explanation.proto index e0a41838..0c00d8a2 100644 --- a/protos/google/cloud/aiplatform/v1/explanation.proto +++ b/protos/google/cloud/aiplatform/v1/explanation.proto @@ -182,8 +182,8 @@ message ExplanationSpec { // Required. Parameters that configure explaining of the Model's predictions. ExplanationParameters parameters = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Metadata describing the Model's input and output for explanation. - ExplanationMetadata metadata = 2 [(google.api.field_behavior) = REQUIRED]; + // Optional. Metadata describing the Model's input and output for explanation. + ExplanationMetadata metadata = 2 [(google.api.field_behavior) = OPTIONAL]; } // Parameters to configure explaining for Model's predictions. @@ -224,7 +224,7 @@ message ExplanationParameters { // explaining. // // If not populated, returns attributions for [top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k] indices of outputs. - // If neither top_k nor output_indeices is populated, returns the argmax + // If neither top_k nor output_indices is populated, returns the argmax // index of the outputs. // // Only applicable to Models that predict multiple outputs (e,g, multi-class diff --git a/protos/google/cloud/aiplatform/v1/index.proto b/protos/google/cloud/aiplatform/v1/index.proto index adf329aa..69fde66a 100644 --- a/protos/google/cloud/aiplatform/v1/index.proto +++ b/protos/google/cloud/aiplatform/v1/index.proto @@ -38,6 +38,21 @@ message Index { pattern: "projects/{project}/locations/{location}/indexes/{index}" }; + // The update method of an Index. + enum IndexUpdateMethod { + // Should not be used. + INDEX_UPDATE_METHOD_UNSPECIFIED = 0; + + // BatchUpdate: user can call UpdateIndex with files on Cloud Storage of + // datapoints to update. + BATCH_UPDATE = 1; + + // StreamUpdate: user can call UpsertDatapoints/DeleteDatapoints to update + // the Index and the updates will be applied in corresponding + // DeployedIndexes in nearly real-time. + STREAM_UPDATE = 2; + } + // Output only. The resource name of the Index. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -93,4 +108,65 @@ message Index { // in the Index. Result of any successfully completed Operation on the Index // is reflected in it. google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Stats of the index resource. + IndexStats index_stats = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be + // used by default. + IndexUpdateMethod index_update_method = 16 [(google.api.field_behavior) = IMMUTABLE]; +} + +// A datapoint of Index. +message IndexDatapoint { + // Restriction of a datapoint which describe its attributes(tokens) from each + // of several attribute categories(namespaces). + message Restriction { + // The namespace of this restriction. eg: color. + string namespace = 1; + + // The attributes to allow in this namespace. eg: 'red' + repeated string allow_list = 2; + + // The attributes to deny in this namespace. eg: 'blue' + repeated string deny_list = 3; + } + + // Crowding tag is a constraint on a neighbor list produced by nearest + // neighbor search requiring that no more than some value k' of the k + // neighbors returned have the same value of crowding_attribute. + message CrowdingTag { + // The attribute value used for crowding. The maximum number of neighbors + // to return per crowding attribute value + // (per_crowding_attribute_num_neighbors) is configured per-query. This + // field is ignored if per_crowding_attribute_num_neighbors is larger than + // the total number of neighbors to return for a given query. + string crowding_attribute = 1; + } + + // Required. Unique identifier of the datapoint. + string datapoint_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Feature embedding vector. An array of numbers with the length of + // [NearestNeighborSearchConfig.dimensions]. + repeated float feature_vector = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. List of Restrict of the datapoint, used to perform "restricted searches" + // where boolean rule are used to filter the subset of the database eligible + // for matching. + // See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering + repeated Restriction restricts = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. CrowdingTag of the datapoint, the number of neighbors to return in each + // crowding can be configured during query. + CrowdingTag crowding_tag = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Stats of the Index. +message IndexStats { + // Output only. The number of vectors in the Index. + int64 vectors_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of shards in the Index. + int32 shards_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/protos/google/cloud/aiplatform/v1/index_service.proto b/protos/google/cloud/aiplatform/v1/index_service.proto index f3812b98..0f6c6325 100644 --- a/protos/google/cloud/aiplatform/v1/index_service.proto +++ b/protos/google/cloud/aiplatform/v1/index_service.proto @@ -93,6 +93,22 @@ service IndexService { metadata_type: "DeleteOperationMetadata" }; } + + // Add/update Datapoints into an Index. + rpc UpsertDatapoints(UpsertDatapointsRequest) returns (UpsertDatapointsResponse) { + option (google.api.http) = { + post: "/v1/{index=projects/*/locations/*/indexes/*}:upsertDatapoints" + body: "*" + }; + } + + // Remove Datapoints from an Index. + rpc RemoveDatapoints(RemoveDatapointsRequest) returns (RemoveDatapointsResponse) { + option (google.api.http) = { + post: "/v1/{index=projects/*/locations/*/indexes/*}:removeDatapoints" + body: "*" + }; + } } // Request message for [IndexService.CreateIndex][google.cloud.aiplatform.v1.IndexService.CreateIndex]. @@ -201,6 +217,48 @@ message DeleteIndexRequest { ]; } +// Request message for [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1.IndexService.UpsertDatapoints] +message UpsertDatapointsRequest { + // Required. The name of the Index resource to be updated. + // Format: + // `projects/{project}/locations/{location}/indexes/{index}` + string index = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Index" + } + ]; + + // A list of datapoints to be created/updated. + repeated IndexDatapoint datapoints = 2; +} + +// Response message for [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1.IndexService.UpsertDatapoints] +message UpsertDatapointsResponse { + +} + +// Request message for [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1.IndexService.RemoveDatapoints] +message RemoveDatapointsRequest { + // Required. The name of the Index resource to be updated. + // Format: + // `projects/{project}/locations/{location}/indexes/{index}` + string index = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Index" + } + ]; + + // A list of datapoint ids to be deleted. + repeated string datapoint_ids = 2; +} + +// Response message for [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1.IndexService.RemoveDatapoints] +message RemoveDatapointsResponse { + +} + // Runtime operation metadata with regard to Matching Engine Index. message NearestNeighborSearchOperationMetadata { message RecordError { diff --git a/protos/google/cloud/aiplatform/v1/model_monitoring.proto b/protos/google/cloud/aiplatform/v1/model_monitoring.proto index 8c806403..039161dd 100644 --- a/protos/google/cloud/aiplatform/v1/model_monitoring.proto +++ b/protos/google/cloud/aiplatform/v1/model_monitoring.proto @@ -27,7 +27,8 @@ option java_package = "com.google.cloud.aiplatform.v1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; option ruby_package = "Google::Cloud::AIPlatform::V1"; -// Next ID: 8 +// The objective configuration for model monitoring, including the information +// needed to detect anomalies for one particular model. message ModelMonitoringObjectiveConfig { // Training Dataset information. message TrainingDataset { @@ -162,7 +163,6 @@ message ModelMonitoringObjectiveConfig { ExplanationConfig explanation_config = 5; } -// Next ID: 3 message ModelMonitoringAlertConfig { // The config for email alert. message EmailAlertConfig { @@ -184,7 +184,6 @@ message ModelMonitoringAlertConfig { } // The config for feature monitoring threshold. -// Next ID: 3 message ThresholdConfig { oneof threshold { // Specify a threshold value that can trigger the alert. @@ -201,7 +200,6 @@ message ThresholdConfig { // Sampling Strategy for logging, can be for both training and prediction // dataset. -// Next ID: 2 message SamplingStrategy { // Requests are randomly selected. message RandomSampleConfig { diff --git a/protos/google/cloud/aiplatform/v1/model_service.proto b/protos/google/cloud/aiplatform/v1/model_service.proto index ca892b3a..9ea6c56c 100644 --- a/protos/google/cloud/aiplatform/v1/model_service.proto +++ b/protos/google/cloud/aiplatform/v1/model_service.proto @@ -439,7 +439,7 @@ message MergeVersionAliasesRequest { // Required. The set of version aliases to merge. // The alias should be at most 128 characters, and match - // `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. + // `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`. // Add the `-` prefix to an alias means removing that alias from the version. // `-` is NOT counted in the 128 characters. Example: `-golden` means removing // the `golden` alias from the version. diff --git a/protos/google/cloud/aiplatform/v1/pipeline_job.proto b/protos/google/cloud/aiplatform/v1/pipeline_job.proto index eb12aabf..656a385b 100644 --- a/protos/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/protos/google/cloud/aiplatform/v1/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.v1.PipelineJob.RuntimeConfig.parameter_values] instead. The runtime // parameters of the PipelineJob. The parameters will be passed into // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders at runtime. @@ -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/protos/google/cloud/aiplatform/v1/pipeline_service.proto b/protos/google/cloud/aiplatform/v1/pipeline_service.proto index 84ab232d..41fef466 100644 --- a/protos/google/cloud/aiplatform/v1/pipeline_service.proto +++ b/protos/google/cloud/aiplatform/v1/pipeline_service.proto @@ -366,6 +366,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.v1.PipelineService.ListPipelineJobs] diff --git a/protos/google/cloud/aiplatform/v1/saved_query.proto b/protos/google/cloud/aiplatform/v1/saved_query.proto index 0c660fcc..5332222d 100644 --- a/protos/google/cloud/aiplatform/v1/saved_query.proto +++ b/protos/google/cloud/aiplatform/v1/saved_query.proto @@ -59,6 +59,7 @@ message SavedQuery { // Required. Problem type of the SavedQuery. // Allowed values: + // // * IMAGE_CLASSIFICATION_SINGLE_LABEL // * IMAGE_CLASSIFICATION_MULTI_LABEL // * IMAGE_BOUNDING_POLY @@ -74,7 +75,7 @@ message SavedQuery { // Output only. Number of AnnotationSpecs in the context of the SavedQuery. int32 annotation_spec_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Used to perform consistent read-modify-write updates. If not set, a blind + // Used to perform a consistent read-modify-write update. If not set, a blind // "overwrite" update happens. string etag = 8; diff --git a/protos/google/cloud/aiplatform/v1/vizier_service.proto b/protos/google/cloud/aiplatform/v1/vizier_service.proto index 57e74d7f..70cc7a7a 100644 --- a/protos/google/cloud/aiplatform/v1/vizier_service.proto +++ b/protos/google/cloud/aiplatform/v1/vizier_service.proto @@ -285,7 +285,7 @@ message SuggestTrialsRequest { } ]; - // Required. The number of suggestions requested. + // Required. The number of suggestions requested. It must be positive. int32 suggestion_count = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The identifier of the client that is requesting the suggestion. diff --git a/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index 50b05eda..5141dfa2 100644 --- a/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto +++ b/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto"; +import "google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto"; import "google/cloud/aiplatform/v1beta1/model_monitoring.proto"; import "google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto"; import "google/protobuf/struct.proto"; @@ -304,4 +305,10 @@ message BatchPredictionJob { // the input and output to the batch prediction job, as well as the provided // training dataset. ModelMonitoringConfig model_monitoring_config = 26; + + // Get batch prediction job monitoring statistics. + repeated ModelMonitoringStatsAnomalies model_monitoring_stats_anomalies = 31; + + // Output only. The running status of the model monitoring pipeline. + google.rpc.Status model_monitoring_status = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto b/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto index a0b0a9cc..3be59c05 100644 --- a/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -399,8 +399,7 @@ message ListSavedQueriesRequest { // Response message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries]. message ListSavedQueriesResponse { - // A list of SavedQueries that matches the specified filter in the - // request. + // A list of SavedQueries that match the specified filter in the request. repeated SavedQuery saved_queries = 1; // The standard List next-page token. diff --git a/protos/google/cloud/aiplatform/v1beta1/explanation.proto b/protos/google/cloud/aiplatform/v1beta1/explanation.proto index 9f844d53..6dccd06e 100644 --- a/protos/google/cloud/aiplatform/v1beta1/explanation.proto +++ b/protos/google/cloud/aiplatform/v1beta1/explanation.proto @@ -183,8 +183,8 @@ message ExplanationSpec { // Required. Parameters that configure explaining of the Model's predictions. ExplanationParameters parameters = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Metadata describing the Model's input and output for explanation. - ExplanationMetadata metadata = 2 [(google.api.field_behavior) = REQUIRED]; + // Optional. Metadata describing the Model's input and output for explanation. + ExplanationMetadata metadata = 2 [(google.api.field_behavior) = OPTIONAL]; } // Parameters to configure explaining for Model's predictions. @@ -229,7 +229,7 @@ message ExplanationParameters { // explaining. // // If not populated, returns attributions for [top_k][google.cloud.aiplatform.v1beta1.ExplanationParameters.top_k] indices of outputs. - // If neither top_k nor output_indeices is populated, returns the argmax + // If neither top_k nor output_indices is populated, returns the argmax // index of the outputs. // // Only applicable to Models that predict multiple outputs (e,g, multi-class diff --git a/protos/google/cloud/aiplatform/v1beta1/index.proto b/protos/google/cloud/aiplatform/v1beta1/index.proto index ea9bc6d1..f0e3c67a 100644 --- a/protos/google/cloud/aiplatform/v1beta1/index.proto +++ b/protos/google/cloud/aiplatform/v1beta1/index.proto @@ -38,6 +38,21 @@ message Index { pattern: "projects/{project}/locations/{location}/indexes/{index}" }; + // The update method of an Index. + enum IndexUpdateMethod { + // Should not be used. + INDEX_UPDATE_METHOD_UNSPECIFIED = 0; + + // BatchUpdate: user can call UpdateIndex with files on Cloud Storage of + // datapoints to update. + BATCH_UPDATE = 1; + + // StreamUpdate: user can call UpsertDatapoints/DeleteDatapoints to update + // the Index and the updates will be applied in corresponding + // DeployedIndexes in nearly real-time. + STREAM_UPDATE = 2; + } + // Output only. The resource name of the Index. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -93,4 +108,65 @@ message Index { // in the Index. Result of any successfully completed Operation on the Index // is reflected in it. google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Stats of the index resource. + IndexStats index_stats = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be + // used by default. + IndexUpdateMethod index_update_method = 16 [(google.api.field_behavior) = IMMUTABLE]; +} + +// A datapoint of Index. +message IndexDatapoint { + // Restriction of a datapoint which describe its attributes(tokens) from each + // of several attribute categories(namespaces). + message Restriction { + // The namespace of this restriction. eg: color. + string namespace = 1; + + // The attributes to allow in this namespace. eg: 'red' + repeated string allow_list = 2; + + // The attributes to deny in this namespace. eg: 'blue' + repeated string deny_list = 3; + } + + // Crowding tag is a constraint on a neighbor list produced by nearest + // neighbor search requiring that no more than some value k' of the k + // neighbors returned have the same value of crowding_attribute. + message CrowdingTag { + // The attribute value used for crowding. The maximum number of neighbors + // to return per crowding attribute value + // (per_crowding_attribute_num_neighbors) is configured per-query. This + // field is ignored if per_crowding_attribute_num_neighbors is larger than + // the total number of neighbors to return for a given query. + string crowding_attribute = 1; + } + + // Required. Unique identifier of the datapoint. + string datapoint_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Feature embedding vector. An array of numbers with the length of + // [NearestNeighborSearchConfig.dimensions]. + repeated float feature_vector = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. List of Restrict of the datapoint, used to perform "restricted searches" + // where boolean rule are used to filter the subset of the database eligible + // for matching. + // See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering + repeated Restriction restricts = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. CrowdingTag of the datapoint, the number of neighbors to return in each + // crowding can be configured during query. + CrowdingTag crowding_tag = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Stats of the Index. +message IndexStats { + // Output only. The number of vectors in the Index. + int64 vectors_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of shards in the Index. + int32 shards_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/protos/google/cloud/aiplatform/v1beta1/index_service.proto b/protos/google/cloud/aiplatform/v1beta1/index_service.proto index db6aaaa0..813f648c 100644 --- a/protos/google/cloud/aiplatform/v1beta1/index_service.proto +++ b/protos/google/cloud/aiplatform/v1beta1/index_service.proto @@ -93,6 +93,22 @@ service IndexService { metadata_type: "DeleteOperationMetadata" }; } + + // Add/update Datapoints into an Index. + rpc UpsertDatapoints(UpsertDatapointsRequest) returns (UpsertDatapointsResponse) { + option (google.api.http) = { + post: "/v1beta1/{index=projects/*/locations/*/indexes/*}:upsertDatapoints" + body: "*" + }; + } + + // Remove Datapoints from an Index. + rpc RemoveDatapoints(RemoveDatapointsRequest) returns (RemoveDatapointsResponse) { + option (google.api.http) = { + post: "/v1beta1/{index=projects/*/locations/*/indexes/*}:removeDatapoints" + body: "*" + }; + } } // Request message for [IndexService.CreateIndex][google.cloud.aiplatform.v1beta1.IndexService.CreateIndex]. @@ -201,6 +217,48 @@ message DeleteIndexRequest { ]; } +// Request message for [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapoints] +message UpsertDatapointsRequest { + // Required. The name of the Index resource to be updated. + // Format: + // `projects/{project}/locations/{location}/indexes/{index}` + string index = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Index" + } + ]; + + // A list of datapoints to be created/updated. + repeated IndexDatapoint datapoints = 2; +} + +// Response message for [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapoints] +message UpsertDatapointsResponse { + +} + +// Request message for [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapoints] +message RemoveDatapointsRequest { + // Required. The name of the Index resource to be updated. + // Format: + // `projects/{project}/locations/{location}/indexes/{index}` + string index = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Index" + } + ]; + + // A list of datapoint ids to be deleted. + repeated string datapoint_ids = 2; +} + +// Response message for [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapoints] +message RemoveDatapointsResponse { + +} + // Runtime operation metadata with regard to Matching Engine Index. message NearestNeighborSearchOperationMetadata { message RecordError { diff --git a/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto b/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto index 3456dc0a..3dc687e5 100644 --- a/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto +++ b/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto @@ -27,7 +27,7 @@ option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; -// Next ID: 5 +// The model monitoring configuration used for Batch Prediction Job. message ModelMonitoringConfig { // Model monitoring objective config. repeated ModelMonitoringObjectiveConfig objective_configs = 3; @@ -43,17 +43,24 @@ message ModelMonitoringConfig { // For models trained with Vertex AI, this field must be set as all the // fields in predict instance formatted as string. string analysis_instance_schema_uri = 4; + + // A Google Cloud Storage location for batch prediction model monitoring to + // dump statistics and anomalies. + // If not provided, a folder will be created in customer project to hold + // statistics and anomalies. + GcsDestination stats_anomalies_base_directory = 5; } -// Next ID: 8 +// The objective configuration for model monitoring, including the information +// needed to detect anomalies for one particular model. message ModelMonitoringObjectiveConfig { // Training Dataset information. message TrainingDataset { 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. @@ -128,8 +135,10 @@ 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 { @@ -171,7 +180,8 @@ 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; @@ -180,7 +190,6 @@ message ModelMonitoringObjectiveConfig { ExplanationConfig explanation_config = 5; } -// Next ID: 3 message ModelMonitoringAlertConfig { // The config for email alert. message EmailAlertConfig { @@ -202,7 +211,6 @@ message ModelMonitoringAlertConfig { } // The config for feature monitoring threshold. -// Next ID: 3 message ThresholdConfig { oneof threshold { // Specify a threshold value that can trigger the alert. @@ -219,7 +227,6 @@ message ThresholdConfig { // Sampling Strategy for logging, can be for both training and prediction // dataset. -// Next ID: 2 message SamplingStrategy { // Requests are randomly selected. message RandomSampleConfig { diff --git a/protos/google/cloud/aiplatform/v1beta1/model_service.proto b/protos/google/cloud/aiplatform/v1beta1/model_service.proto index 1a9e0767..1af9d4b4 100644 --- a/protos/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/protos/google/cloud/aiplatform/v1beta1/model_service.proto @@ -465,7 +465,7 @@ message MergeVersionAliasesRequest { // Required. The set of version aliases to merge. // The alias should be at most 128 characters, and match - // `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. + // `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`. // Add the `-` prefix to an alias means removing that alias from the version. // `-` is NOT counted in the 128 characters. Example: `-golden` means removing // the `golden` alias from the version. diff --git a/protos/google/cloud/aiplatform/v1beta1/saved_query.proto b/protos/google/cloud/aiplatform/v1beta1/saved_query.proto index ca99c039..da02d8a5 100644 --- a/protos/google/cloud/aiplatform/v1beta1/saved_query.proto +++ b/protos/google/cloud/aiplatform/v1beta1/saved_query.proto @@ -59,6 +59,7 @@ message SavedQuery { // Required. Problem type of the SavedQuery. // Allowed values: + // // * IMAGE_CLASSIFICATION_SINGLE_LABEL // * IMAGE_CLASSIFICATION_MULTI_LABEL // * IMAGE_BOUNDING_POLY @@ -74,7 +75,7 @@ message SavedQuery { // Output only. Number of AnnotationSpecs in the context of the SavedQuery. int32 annotation_spec_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Used to perform consistent read-modify-write updates. If not set, a blind + // Used to perform a consistent read-modify-write update. If not set, a blind // "overwrite" update happens. string etag = 8; diff --git a/protos/google/cloud/aiplatform/v1beta1/vizier_service.proto b/protos/google/cloud/aiplatform/v1beta1/vizier_service.proto index 079c514a..88aec042 100644 --- a/protos/google/cloud/aiplatform/v1beta1/vizier_service.proto +++ b/protos/google/cloud/aiplatform/v1beta1/vizier_service.proto @@ -285,7 +285,7 @@ message SuggestTrialsRequest { } ]; - // Required. The number of suggestions requested. + // Required. The number of suggestions requested. It must be positive. int32 suggestion_count = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The identifier of the client that is requesting the suggestion. diff --git a/protos/protos.d.ts b/protos/protos.d.ts index cef0e1e5..582ba204 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -24571,6 +24571,12 @@ export namespace google { /** Index updateTime */ updateTime?: (google.protobuf.ITimestamp|null); + + /** Index indexStats */ + indexStats?: (google.cloud.aiplatform.v1.IIndexStats|null); + + /** Index indexUpdateMethod */ + indexUpdateMethod?: (google.cloud.aiplatform.v1.Index.IndexUpdateMethod|keyof typeof google.cloud.aiplatform.v1.Index.IndexUpdateMethod|null); } /** Represents an Index. */ @@ -24612,6 +24618,12 @@ export namespace google { /** Index updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); + /** Index indexStats. */ + public indexStats?: (google.cloud.aiplatform.v1.IIndexStats|null); + + /** Index indexUpdateMethod. */ + public indexUpdateMethod: (google.cloud.aiplatform.v1.Index.IndexUpdateMethod|keyof typeof google.cloud.aiplatform.v1.Index.IndexUpdateMethod); + /** * Creates a new Index instance using the specified properties. * @param [properties] Properties to set @@ -24690,6 +24702,443 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace Index { + + /** IndexUpdateMethod enum. */ + enum IndexUpdateMethod { + INDEX_UPDATE_METHOD_UNSPECIFIED = 0, + BATCH_UPDATE = 1, + STREAM_UPDATE = 2 + } + } + + /** Properties of an IndexDatapoint. */ + interface IIndexDatapoint { + + /** IndexDatapoint datapointId */ + datapointId?: (string|null); + + /** IndexDatapoint featureVector */ + featureVector?: (number[]|null); + + /** IndexDatapoint restricts */ + restricts?: (google.cloud.aiplatform.v1.IndexDatapoint.IRestriction[]|null); + + /** IndexDatapoint crowdingTag */ + crowdingTag?: (google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag|null); + } + + /** Represents an IndexDatapoint. */ + class IndexDatapoint implements IIndexDatapoint { + + /** + * Constructs a new IndexDatapoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IIndexDatapoint); + + /** IndexDatapoint datapointId. */ + public datapointId: string; + + /** IndexDatapoint featureVector. */ + public featureVector: number[]; + + /** IndexDatapoint restricts. */ + public restricts: google.cloud.aiplatform.v1.IndexDatapoint.IRestriction[]; + + /** IndexDatapoint crowdingTag. */ + public crowdingTag?: (google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag|null); + + /** + * Creates a new IndexDatapoint instance using the specified properties. + * @param [properties] Properties to set + * @returns IndexDatapoint instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IIndexDatapoint): google.cloud.aiplatform.v1.IndexDatapoint; + + /** + * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.verify|verify} messages. + * @param message IndexDatapoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IIndexDatapoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.verify|verify} messages. + * @param message IndexDatapoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IIndexDatapoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IndexDatapoint + * @throws {Error} If the payload is not a reader 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.IndexDatapoint; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IndexDatapoint + * @throws {Error} If the payload is not 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.IndexDatapoint; + + /** + * Verifies an IndexDatapoint message. + * @param message Plain 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 IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IndexDatapoint + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.IndexDatapoint; + + /** + * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. + * @param message IndexDatapoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.IndexDatapoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IndexDatapoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IndexDatapoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace IndexDatapoint { + + /** Properties of a Restriction. */ + interface IRestriction { + + /** Restriction namespace */ + namespace?: (string|null); + + /** Restriction allowList */ + allowList?: (string[]|null); + + /** Restriction denyList */ + denyList?: (string[]|null); + } + + /** Represents a Restriction. */ + class Restriction implements IRestriction { + + /** + * Constructs a new Restriction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IndexDatapoint.IRestriction); + + /** Restriction namespace. */ + public namespace: string; + + /** Restriction allowList. */ + public allowList: string[]; + + /** Restriction denyList. */ + public denyList: string[]; + + /** + * Creates a new Restriction instance using the specified properties. + * @param [properties] Properties to set + * @returns Restriction instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IndexDatapoint.IRestriction): google.cloud.aiplatform.v1.IndexDatapoint.Restriction; + + /** + * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.Restriction.verify|verify} messages. + * @param message Restriction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IndexDatapoint.IRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.Restriction.verify|verify} messages. + * @param message Restriction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IndexDatapoint.IRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Restriction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Restriction + * @throws {Error} If the payload is not a reader 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.IndexDatapoint.Restriction; + + /** + * Decodes a Restriction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Restriction + * @throws {Error} If the payload is not 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.IndexDatapoint.Restriction; + + /** + * Verifies a Restriction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Restriction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Restriction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.IndexDatapoint.Restriction; + + /** + * Creates a plain object from a Restriction message. Also converts values to other types if specified. + * @param message Restriction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.IndexDatapoint.Restriction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Restriction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Restriction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CrowdingTag. */ + interface ICrowdingTag { + + /** CrowdingTag crowdingAttribute */ + crowdingAttribute?: (string|null); + } + + /** Represents a CrowdingTag. */ + class CrowdingTag implements ICrowdingTag { + + /** + * Constructs a new CrowdingTag. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag); + + /** CrowdingTag crowdingAttribute. */ + public crowdingAttribute: string; + + /** + * Creates a new CrowdingTag instance using the specified properties. + * @param [properties] Properties to set + * @returns CrowdingTag instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag): google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag; + + /** + * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @param message CrowdingTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @param message CrowdingTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CrowdingTag + * @throws {Error} If the payload is not a reader 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.IndexDatapoint.CrowdingTag; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CrowdingTag + * @throws {Error} If the payload is not 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.IndexDatapoint.CrowdingTag; + + /** + * Verifies a CrowdingTag message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CrowdingTag message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CrowdingTag + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag; + + /** + * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. + * @param message CrowdingTag + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CrowdingTag to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CrowdingTag + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an IndexStats. */ + interface IIndexStats { + + /** IndexStats vectorsCount */ + vectorsCount?: (number|Long|string|null); + + /** IndexStats shardsCount */ + shardsCount?: (number|null); + } + + /** Represents an IndexStats. */ + class IndexStats implements IIndexStats { + + /** + * Constructs a new IndexStats. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IIndexStats); + + /** IndexStats vectorsCount. */ + public vectorsCount: (number|Long|string); + + /** IndexStats shardsCount. */ + public shardsCount: number; + + /** + * Creates a new IndexStats instance using the specified properties. + * @param [properties] Properties to set + * @returns IndexStats instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IIndexStats): google.cloud.aiplatform.v1.IndexStats; + + /** + * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexStats.verify|verify} messages. + * @param message IndexStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IIndexStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexStats.verify|verify} messages. + * @param message IndexStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IIndexStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IndexStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IndexStats + * @throws {Error} If the payload is not a reader 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.IndexStats; + + /** + * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IndexStats + * @throws {Error} If the payload is not 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.IndexStats; + + /** + * Verifies an IndexStats message. + * @param message Plain 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 IndexStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IndexStats + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.IndexStats; + + /** + * Creates a plain object from an IndexStats message. Also converts values to other types if specified. + * @param message IndexStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.IndexStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IndexStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IndexStats + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an IndexEndpoint. */ interface IIndexEndpoint { @@ -27209,6 +27658,34 @@ export namespace google { * @returns Promise */ public deleteIndex(request: google.cloud.aiplatform.v1.IDeleteIndexRequest): Promise; + + /** + * Calls UpsertDatapoints. + * @param request UpsertDatapointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + */ + public upsertDatapoints(request: google.cloud.aiplatform.v1.IUpsertDatapointsRequest, callback: google.cloud.aiplatform.v1.IndexService.UpsertDatapointsCallback): void; + + /** + * Calls UpsertDatapoints. + * @param request UpsertDatapointsRequest message or plain object + * @returns Promise + */ + public upsertDatapoints(request: google.cloud.aiplatform.v1.IUpsertDatapointsRequest): Promise; + + /** + * Calls RemoveDatapoints. + * @param request RemoveDatapointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RemoveDatapointsResponse + */ + public removeDatapoints(request: google.cloud.aiplatform.v1.IRemoveDatapointsRequest, callback: google.cloud.aiplatform.v1.IndexService.RemoveDatapointsCallback): void; + + /** + * Calls RemoveDatapoints. + * @param request RemoveDatapointsRequest message or plain object + * @returns Promise + */ + public removeDatapoints(request: google.cloud.aiplatform.v1.IRemoveDatapointsRequest): Promise; } namespace IndexService { @@ -27247,6 +27724,20 @@ export namespace google { * @param [response] Operation */ type DeleteIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|upsertDatapoints}. + * @param error Error, if any + * @param [response] UpsertDatapointsResponse + */ + type UpsertDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.UpsertDatapointsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|removeDatapoints}. + * @param error Error, if any + * @param [response] RemoveDatapointsResponse + */ + type RemoveDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.RemoveDatapointsResponse) => void; } /** Properties of a CreateIndexRequest. */ @@ -28079,6 +28570,394 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an UpsertDatapointsRequest. */ + interface IUpsertDatapointsRequest { + + /** UpsertDatapointsRequest index */ + index?: (string|null); + + /** UpsertDatapointsRequest datapoints */ + datapoints?: (google.cloud.aiplatform.v1.IIndexDatapoint[]|null); + } + + /** Represents an UpsertDatapointsRequest. */ + class UpsertDatapointsRequest implements IUpsertDatapointsRequest { + + /** + * Constructs a new UpsertDatapointsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpsertDatapointsRequest); + + /** UpsertDatapointsRequest index. */ + public index: string; + + /** UpsertDatapointsRequest datapoints. */ + public datapoints: google.cloud.aiplatform.v1.IIndexDatapoint[]; + + /** + * Creates a new UpsertDatapointsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpsertDatapointsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpsertDatapointsRequest): google.cloud.aiplatform.v1.UpsertDatapointsRequest; + + /** + * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsRequest.verify|verify} messages. + * @param message UpsertDatapointsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpsertDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsRequest.verify|verify} messages. + * @param message UpsertDatapointsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpsertDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpsertDatapointsRequest + * @throws {Error} If the payload is not a reader 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.UpsertDatapointsRequest; + + /** + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpsertDatapointsRequest + * @throws {Error} If the payload is not 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.UpsertDatapointsRequest; + + /** + * Verifies an UpsertDatapointsRequest message. + * @param message Plain 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 UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpsertDatapointsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpsertDatapointsRequest; + + /** + * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. + * @param message UpsertDatapointsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpsertDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpsertDatapointsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpsertDatapointsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpsertDatapointsResponse. */ + interface IUpsertDatapointsResponse { + } + + /** Represents an UpsertDatapointsResponse. */ + class UpsertDatapointsResponse implements IUpsertDatapointsResponse { + + /** + * Constructs a new UpsertDatapointsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpsertDatapointsResponse); + + /** + * Creates a new UpsertDatapointsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpsertDatapointsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpsertDatapointsResponse): google.cloud.aiplatform.v1.UpsertDatapointsResponse; + + /** + * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsResponse.verify|verify} messages. + * @param message UpsertDatapointsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpsertDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsResponse.verify|verify} messages. + * @param message UpsertDatapointsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpsertDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpsertDatapointsResponse + * @throws {Error} If the payload is not a reader 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.UpsertDatapointsResponse; + + /** + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpsertDatapointsResponse + * @throws {Error} If the payload is not 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.UpsertDatapointsResponse; + + /** + * Verifies an UpsertDatapointsResponse message. + * @param message Plain 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 UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpsertDatapointsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpsertDatapointsResponse; + + /** + * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. + * @param message UpsertDatapointsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpsertDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpsertDatapointsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpsertDatapointsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveDatapointsRequest. */ + interface IRemoveDatapointsRequest { + + /** RemoveDatapointsRequest index */ + index?: (string|null); + + /** RemoveDatapointsRequest datapointIds */ + datapointIds?: (string[]|null); + } + + /** Represents a RemoveDatapointsRequest. */ + class RemoveDatapointsRequest implements IRemoveDatapointsRequest { + + /** + * Constructs a new RemoveDatapointsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRemoveDatapointsRequest); + + /** RemoveDatapointsRequest index. */ + public index: string; + + /** RemoveDatapointsRequest datapointIds. */ + public datapointIds: string[]; + + /** + * Creates a new RemoveDatapointsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveDatapointsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRemoveDatapointsRequest): google.cloud.aiplatform.v1.RemoveDatapointsRequest; + + /** + * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsRequest.verify|verify} messages. + * @param message RemoveDatapointsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRemoveDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsRequest.verify|verify} messages. + * @param message RemoveDatapointsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRemoveDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveDatapointsRequest + * @throws {Error} If the payload is not a reader 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.RemoveDatapointsRequest; + + /** + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveDatapointsRequest + * @throws {Error} If the payload is not 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.RemoveDatapointsRequest; + + /** + * Verifies a RemoveDatapointsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveDatapointsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RemoveDatapointsRequest; + + /** + * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. + * @param message RemoveDatapointsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RemoveDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveDatapointsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveDatapointsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveDatapointsResponse. */ + interface IRemoveDatapointsResponse { + } + + /** Represents a RemoveDatapointsResponse. */ + class RemoveDatapointsResponse implements IRemoveDatapointsResponse { + + /** + * Constructs a new RemoveDatapointsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRemoveDatapointsResponse); + + /** + * Creates a new RemoveDatapointsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveDatapointsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRemoveDatapointsResponse): google.cloud.aiplatform.v1.RemoveDatapointsResponse; + + /** + * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsResponse.verify|verify} messages. + * @param message RemoveDatapointsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRemoveDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsResponse.verify|verify} messages. + * @param message RemoveDatapointsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRemoveDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveDatapointsResponse + * @throws {Error} If the payload is not a reader 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.RemoveDatapointsResponse; + + /** + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveDatapointsResponse + * @throws {Error} If the payload is not 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.RemoveDatapointsResponse; + + /** + * Verifies a RemoveDatapointsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveDatapointsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RemoveDatapointsResponse; + + /** + * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. + * @param message RemoveDatapointsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RemoveDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveDatapointsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveDatapointsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a NearestNeighborSearchOperationMetadata. */ interface INearestNeighborSearchOperationMetadata { @@ -46816,6 +47695,9 @@ export namespace google { /** RuntimeConfig failurePolicy */ failurePolicy?: (google.cloud.aiplatform.v1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1.PipelineFailurePolicy|null); + + /** RuntimeConfig inputArtifacts */ + inputArtifacts?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact }|null); } /** Represents a RuntimeConfig. */ @@ -46839,6 +47721,9 @@ export namespace google { /** RuntimeConfig failurePolicy. */ public failurePolicy: (google.cloud.aiplatform.v1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1.PipelineFailurePolicy); + /** RuntimeConfig inputArtifacts. */ + public inputArtifacts: { [k: string]: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact }; + /** * Creates a new RuntimeConfig instance using the specified properties. * @param [properties] Properties to set @@ -46916,6 +47801,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.v1.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.v1.PipelineJob.RuntimeConfig.IInputArtifact): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; + + /** + * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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. */ @@ -49025,6 +50013,9 @@ export namespace google { /** ListPipelineJobsRequest orderBy */ orderBy?: (string|null); + + /** ListPipelineJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } /** Represents a ListPipelineJobsRequest. */ @@ -49051,6 +50042,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 @@ -68105,6 +69099,12 @@ export namespace google { /** BatchPredictionJob modelMonitoringConfig */ modelMonitoringConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null); + + /** BatchPredictionJob modelMonitoringStatsAnomalies */ + modelMonitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + + /** BatchPredictionJob modelMonitoringStatus */ + modelMonitoringStatus?: (google.rpc.IStatus|null); } /** Represents a BatchPredictionJob. */ @@ -68194,6 +69194,12 @@ export namespace google { /** BatchPredictionJob modelMonitoringConfig. */ public modelMonitoringConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null); + /** BatchPredictionJob modelMonitoringStatsAnomalies. */ + public modelMonitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + + /** BatchPredictionJob modelMonitoringStatus. */ + public modelMonitoringStatus?: (google.rpc.IStatus|null); + /** * Creates a new BatchPredictionJob instance using the specified properties. * @param [properties] Properties to set @@ -73526,396 +74532,1452 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringConfig. */ - interface IModelMonitoringConfig { + /** ModelDeploymentMonitoringObjectiveType enum. */ + enum ModelDeploymentMonitoringObjectiveType { + MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, + RAW_FEATURE_SKEW = 1, + RAW_FEATURE_DRIFT = 2, + FEATURE_ATTRIBUTION_SKEW = 3, + FEATURE_ATTRIBUTION_DRIFT = 4 + } - /** ModelMonitoringConfig objectiveConfigs */ - objectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]|null); + /** Properties of a ModelDeploymentMonitoringJob. */ + interface IModelDeploymentMonitoringJob { - /** ModelMonitoringConfig alertConfig */ - alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + /** ModelDeploymentMonitoringJob name */ + name?: (string|null); - /** ModelMonitoringConfig analysisInstanceSchemaUri */ - analysisInstanceSchemaUri?: (string|null); - } + /** ModelDeploymentMonitoringJob displayName */ + displayName?: (string|null); - /** Represents a ModelMonitoringConfig. */ - class ModelMonitoringConfig implements IModelMonitoringConfig { + /** ModelDeploymentMonitoringJob endpoint */ + endpoint?: (string|null); - /** - * Constructs a new ModelMonitoringConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig); + /** ModelDeploymentMonitoringJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** ModelMonitoringConfig objectiveConfigs. */ - public objectiveConfigs: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]; + /** ModelDeploymentMonitoringJob scheduleState */ + scheduleState?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); - /** ModelMonitoringConfig alertConfig. */ - public alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ + latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - /** ModelMonitoringConfig analysisInstanceSchemaUri. */ - public analysisInstanceSchemaUri: string; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ + modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]|null); - /** - * Creates a new ModelMonitoringConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ModelMonitoringConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ + modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - /** - * Encodes the specified ModelMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. - * @param message ModelMonitoringConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - /** - * Encodes the specified ModelMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. - * @param message ModelMonitoringConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ + modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - /** - * Decodes a ModelMonitoringConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ModelMonitoringConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ + predictInstanceSchemaUri?: (string|null); - /** - * Decodes a ModelMonitoringConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ModelMonitoringConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; + /** ModelDeploymentMonitoringJob samplePredictInstance */ + samplePredictInstance?: (google.protobuf.IValue|null); - /** - * Verifies a ModelMonitoringConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ + analysisInstanceSchemaUri?: (string|null); - /** - * Creates a ModelMonitoringConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ModelMonitoringConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; + /** ModelDeploymentMonitoringJob bigqueryTables */ + bigqueryTables?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]|null); - /** - * Creates a plain object from a ModelMonitoringConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ModelDeploymentMonitoringJob logTtl */ + logTtl?: (google.protobuf.IDuration|null); - /** - * Converts this ModelMonitoringConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ModelDeploymentMonitoringJob labels */ + labels?: ({ [k: string]: string }|null); - /** - * Gets the default type url for ModelMonitoringConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ModelDeploymentMonitoringJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** Properties of a ModelMonitoringObjectiveConfig. */ - interface IModelMonitoringObjectiveConfig { + /** ModelDeploymentMonitoringJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringObjectiveConfig trainingDataset */ - trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + /** ModelDeploymentMonitoringJob nextScheduleTime */ + nextScheduleTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ - trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ + statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ - predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** ModelDeploymentMonitoringJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** ModelMonitoringObjectiveConfig explanationConfig */ - explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ + enableMonitoringPipelineLogs?: (boolean|null); + + /** ModelDeploymentMonitoringJob error */ + error?: (google.rpc.IStatus|null); } - /** Represents a ModelMonitoringObjectiveConfig. */ - class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { + /** Represents a ModelDeploymentMonitoringJob. */ + class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { /** - * Constructs a new ModelMonitoringObjectiveConfig. + * Constructs a new ModelDeploymentMonitoringJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob); - /** ModelMonitoringObjectiveConfig trainingDataset. */ - public trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + /** ModelDeploymentMonitoringJob name. */ + public name: string; - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ - public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + /** ModelDeploymentMonitoringJob displayName. */ + public displayName: string; - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ - public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** ModelDeploymentMonitoringJob endpoint. */ + public endpoint: string; - /** ModelMonitoringObjectiveConfig explanationConfig. */ - public explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** ModelDeploymentMonitoringJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); + + /** ModelDeploymentMonitoringJob scheduleState. */ + public scheduleState: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState); + + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ + public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); + + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ + public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]; + + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ + public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); + + /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ + public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ + public predictInstanceSchemaUri: string; + + /** ModelDeploymentMonitoringJob samplePredictInstance. */ + public samplePredictInstance?: (google.protobuf.IValue|null); + + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ + public analysisInstanceSchemaUri: string; + + /** ModelDeploymentMonitoringJob bigqueryTables. */ + public bigqueryTables: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]; + + /** ModelDeploymentMonitoringJob logTtl. */ + public logTtl?: (google.protobuf.IDuration|null); + + /** ModelDeploymentMonitoringJob labels. */ + public labels: { [k: string]: string }; + + /** ModelDeploymentMonitoringJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob nextScheduleTime. */ + public nextScheduleTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ + public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** ModelDeploymentMonitoringJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ + public enableMonitoringPipelineLogs: boolean; + + /** ModelDeploymentMonitoringJob error. */ + public error?: (google.rpc.IStatus|null); /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringObjectiveConfig instance + * @returns ModelDeploymentMonitoringJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringObjectiveConfig + * @returns ModelDeploymentMonitoringJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringObjectiveConfig + * @returns ModelDeploymentMonitoringJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies a ModelDeploymentMonitoringJob message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringObjectiveConfig + * @returns ModelDeploymentMonitoringJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringObjectiveConfig + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringObjectiveConfig to JSON. + * Converts this ModelDeploymentMonitoringJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringObjectiveConfig + * Gets the default type url for ModelDeploymentMonitoringJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringObjectiveConfig { - - /** Properties of a TrainingDataset. */ - interface ITrainingDataset { - - /** TrainingDataset dataset */ - dataset?: (string|null); - - /** TrainingDataset gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - - /** TrainingDataset bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + namespace ModelDeploymentMonitoringJob { - /** TrainingDataset dataFormat */ - dataFormat?: (string|null); + /** Properties of a LatestMonitoringPipelineMetadata. */ + interface ILatestMonitoringPipelineMetadata { - /** TrainingDataset targetField */ - targetField?: (string|null); + /** LatestMonitoringPipelineMetadata runTime */ + runTime?: (google.protobuf.ITimestamp|null); - /** TrainingDataset loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + /** LatestMonitoringPipelineMetadata status */ + status?: (google.rpc.IStatus|null); } - /** Represents a TrainingDataset. */ - class TrainingDataset implements ITrainingDataset { + /** Represents a LatestMonitoringPipelineMetadata. */ + class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { /** - * Constructs a new TrainingDataset. + * Constructs a new LatestMonitoringPipelineMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset); - - /** TrainingDataset dataset. */ - public dataset?: (string|null); - - /** TrainingDataset gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - - /** TrainingDataset bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** TrainingDataset dataFormat. */ - public dataFormat: string; - - /** TrainingDataset targetField. */ - public targetField: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); - /** TrainingDataset loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + /** LatestMonitoringPipelineMetadata runTime. */ + public runTime?: (google.protobuf.ITimestamp|null); - /** TrainingDataset dataSource. */ - public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); + /** LatestMonitoringPipelineMetadata status. */ + public status?: (google.rpc.IStatus|null); /** - * Creates a new TrainingDataset instance using the specified properties. + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns TrainingDataset instance + * @returns LatestMonitoringPipelineMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainingDataset message from the specified reader or buffer. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TrainingDataset + * @returns LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TrainingDataset + * @returns LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Verifies a TrainingDataset message. + * Verifies a LatestMonitoringPipelineMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TrainingDataset + * @returns LatestMonitoringPipelineMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. - * @param message TrainingDataset + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. + * @param message LatestMonitoringPipelineMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainingDataset to JSON. + * Converts this LatestMonitoringPipelineMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TrainingDataset + * Gets the default type url for LatestMonitoringPipelineMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TrainingPredictionSkewDetectionConfig. */ - interface ITrainingPredictionSkewDetectionConfig { - - /** TrainingPredictionSkewDetectionConfig skewThresholds */ - skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ - attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - - /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ - defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + /** MonitoringScheduleState enum. */ + enum MonitoringScheduleState { + MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, + PENDING = 1, + OFFLINE = 2, + RUNNING = 3 } + } - /** Represents a TrainingPredictionSkewDetectionConfig. */ - class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { + /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ + interface IModelDeploymentMonitoringBigQueryTable { - /** - * Constructs a new TrainingPredictionSkewDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); + /** ModelDeploymentMonitoringBigQueryTable logSource */ + logSource?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); - /** TrainingPredictionSkewDetectionConfig skewThresholds. */ - public skewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + /** ModelDeploymentMonitoringBigQueryTable logType */ + logType?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null); - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ - public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ + bigqueryTablePath?: (string|null); + } - /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ - public defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + /** Represents a ModelDeploymentMonitoringBigQueryTable. */ + class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { - /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. - * @param [properties] Properties to set + /** + * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable); + + /** ModelDeploymentMonitoringBigQueryTable logSource. */ + public logSource: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource); + + /** ModelDeploymentMonitoringBigQueryTable logType. */ + public logType: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType); + + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ + public bigqueryTablePath: string; + + /** + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelDeploymentMonitoringBigQueryTable instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + + /** + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelDeploymentMonitoringBigQueryTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + + /** + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelDeploymentMonitoringBigQueryTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + + /** + * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelDeploymentMonitoringBigQueryTable + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + + /** + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringBigQueryTable + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ModelDeploymentMonitoringBigQueryTable { + + /** LogSource enum. */ + enum LogSource { + LOG_SOURCE_UNSPECIFIED = 0, + TRAINING = 1, + SERVING = 2 + } + + /** LogType enum. */ + enum LogType { + LOG_TYPE_UNSPECIFIED = 0, + PREDICT = 1, + EXPLAIN = 2 + } + } + + /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ + interface IModelDeploymentMonitoringObjectiveConfig { + + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ + deployedModelId?: (string|null); + + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ + objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); + } + + /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ + class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { + + /** + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig); + + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ + public deployedModelId: string; + + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ + public objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); + + /** + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelDeploymentMonitoringObjectiveConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + + /** + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelDeploymentMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + + /** + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelDeploymentMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + + /** + * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelDeploymentMonitoringObjectiveConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + + /** + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringObjectiveConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ + interface IModelDeploymentMonitoringScheduleConfig { + + /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ + monitorInterval?: (google.protobuf.IDuration|null); + + /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ + monitorWindow?: (google.protobuf.IDuration|null); + } + + /** Represents a ModelDeploymentMonitoringScheduleConfig. */ + class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { + + /** + * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig); + + /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ + public monitorInterval?: (google.protobuf.IDuration|null); + + /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ + public monitorWindow?: (google.protobuf.IDuration|null); + + /** + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelDeploymentMonitoringScheduleConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + + /** + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelDeploymentMonitoringScheduleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + + /** + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelDeploymentMonitoringScheduleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + + /** + * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelDeploymentMonitoringScheduleConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + + /** + * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringScheduleConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ModelMonitoringStatsAnomalies. */ + interface IModelMonitoringStatsAnomalies { + + /** ModelMonitoringStatsAnomalies objective */ + objective?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); + + /** ModelMonitoringStatsAnomalies deployedModelId */ + deployedModelId?: (string|null); + + /** ModelMonitoringStatsAnomalies anomalyCount */ + anomalyCount?: (number|null); + + /** ModelMonitoringStatsAnomalies featureStats */ + featureStats?: (google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); + } + + /** Represents a ModelMonitoringStatsAnomalies. */ + class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { + + /** + * Constructs a new ModelMonitoringStatsAnomalies. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies); + + /** ModelMonitoringStatsAnomalies objective. */ + public objective: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); + + /** ModelMonitoringStatsAnomalies deployedModelId. */ + public deployedModelId: string; + + /** ModelMonitoringStatsAnomalies anomalyCount. */ + public anomalyCount: number; + + /** ModelMonitoringStatsAnomalies featureStats. */ + public featureStats: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; + + /** + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelMonitoringStatsAnomalies instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + + /** + * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelMonitoringStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + + /** + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelMonitoringStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + + /** + * Verifies a ModelMonitoringStatsAnomalies message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelMonitoringStatsAnomalies + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + + /** + * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * @param message ModelMonitoringStatsAnomalies + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelMonitoringStatsAnomalies to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ModelMonitoringStatsAnomalies + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ModelMonitoringStatsAnomalies { + + /** Properties of a FeatureHistoricStatsAnomalies. */ + interface IFeatureHistoricStatsAnomalies { + + /** FeatureHistoricStatsAnomalies featureDisplayName */ + featureDisplayName?: (string|null); + + /** FeatureHistoricStatsAnomalies threshold */ + threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + + /** FeatureHistoricStatsAnomalies trainingStats */ + trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); + + /** FeatureHistoricStatsAnomalies predictionStats */ + predictionStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); + } + + /** Represents a FeatureHistoricStatsAnomalies. */ + class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { + + /** + * Constructs a new FeatureHistoricStatsAnomalies. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); + + /** FeatureHistoricStatsAnomalies featureDisplayName. */ + public featureDisplayName: string; + + /** FeatureHistoricStatsAnomalies threshold. */ + public threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + + /** FeatureHistoricStatsAnomalies trainingStats. */ + public trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); + + /** FeatureHistoricStatsAnomalies predictionStats. */ + public predictionStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; + + /** + * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureHistoricStatsAnomalies instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + + /** + * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureHistoricStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + + /** + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureHistoricStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + + /** + * Verifies a FeatureHistoricStatsAnomalies message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureHistoricStatsAnomalies + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + + /** + * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. + * @param message FeatureHistoricStatsAnomalies + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureHistoricStatsAnomalies to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureHistoricStatsAnomalies + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a FeatureStatsAnomaly. */ + interface IFeatureStatsAnomaly { + + /** FeatureStatsAnomaly score */ + score?: (number|null); + + /** FeatureStatsAnomaly statsUri */ + statsUri?: (string|null); + + /** FeatureStatsAnomaly anomalyUri */ + anomalyUri?: (string|null); + + /** FeatureStatsAnomaly distributionDeviation */ + distributionDeviation?: (number|null); + + /** FeatureStatsAnomaly anomalyDetectionThreshold */ + anomalyDetectionThreshold?: (number|null); + + /** FeatureStatsAnomaly startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** FeatureStatsAnomaly endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a FeatureStatsAnomaly. */ + class FeatureStatsAnomaly implements IFeatureStatsAnomaly { + + /** + * Constructs a new FeatureStatsAnomaly. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly); + + /** FeatureStatsAnomaly score. */ + public score: number; + + /** FeatureStatsAnomaly statsUri. */ + public statsUri: string; + + /** FeatureStatsAnomaly anomalyUri. */ + public anomalyUri: string; + + /** FeatureStatsAnomaly distributionDeviation. */ + public distributionDeviation: number; + + /** FeatureStatsAnomaly anomalyDetectionThreshold. */ + public anomalyDetectionThreshold: number; + + /** FeatureStatsAnomaly startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** FeatureStatsAnomaly endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new FeatureStatsAnomaly instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureStatsAnomaly instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; + + /** + * Encodes the specified FeatureStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. + * @param message FeatureStatsAnomaly message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. + * @param message FeatureStatsAnomaly message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureStatsAnomaly message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureStatsAnomaly + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; + + /** + * Decodes a FeatureStatsAnomaly message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureStatsAnomaly + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; + + /** + * Verifies a FeatureStatsAnomaly message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureStatsAnomaly message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureStatsAnomaly + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; + + /** + * Creates a plain object from a FeatureStatsAnomaly message. Also converts values to other types if specified. + * @param message FeatureStatsAnomaly + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureStatsAnomaly to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureStatsAnomaly + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ModelMonitoringConfig. */ + interface IModelMonitoringConfig { + + /** ModelMonitoringConfig objectiveConfigs */ + objectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]|null); + + /** ModelMonitoringConfig alertConfig */ + alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + + /** ModelMonitoringConfig analysisInstanceSchemaUri */ + analysisInstanceSchemaUri?: (string|null); + + /** ModelMonitoringConfig statsAnomaliesBaseDirectory */ + statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + } + + /** Represents a ModelMonitoringConfig. */ + class ModelMonitoringConfig implements IModelMonitoringConfig { + + /** + * Constructs a new ModelMonitoringConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig); + + /** ModelMonitoringConfig objectiveConfigs. */ + public objectiveConfigs: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]; + + /** ModelMonitoringConfig alertConfig. */ + public alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + + /** ModelMonitoringConfig analysisInstanceSchemaUri. */ + public analysisInstanceSchemaUri: string; + + /** ModelMonitoringConfig statsAnomaliesBaseDirectory. */ + public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** + * Creates a new ModelMonitoringConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelMonitoringConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; + + /** + * Encodes the specified ModelMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. + * @param message ModelMonitoringConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ModelMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. + * @param message ModelMonitoringConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModelMonitoringConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelMonitoringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; + + /** + * Decodes a ModelMonitoringConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelMonitoringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; + + /** + * Verifies a ModelMonitoringConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ModelMonitoringConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelMonitoringConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; + + /** + * Creates a plain object from a ModelMonitoringConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelMonitoringConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ModelMonitoringConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ModelMonitoringObjectiveConfig. */ + interface IModelMonitoringObjectiveConfig { + + /** ModelMonitoringObjectiveConfig trainingDataset */ + trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ + trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ + predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig explanationConfig */ + explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + } + + /** Represents a ModelMonitoringObjectiveConfig. */ + class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { + + /** + * Constructs a new ModelMonitoringObjectiveConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig); + + /** ModelMonitoringObjectiveConfig trainingDataset. */ + public trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ + public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ + public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig explanationConfig. */ + public explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + + /** + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelMonitoringObjectiveConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + + /** + * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + + /** + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + + /** + * Verifies a ModelMonitoringObjectiveConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelMonitoringObjectiveConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + + /** + * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringObjectiveConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelMonitoringObjectiveConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ModelMonitoringObjectiveConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ModelMonitoringObjectiveConfig { + + /** Properties of a TrainingDataset. */ + interface ITrainingDataset { + + /** TrainingDataset dataset */ + dataset?: (string|null); + + /** TrainingDataset gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + + /** TrainingDataset bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + + /** TrainingDataset dataFormat */ + dataFormat?: (string|null); + + /** TrainingDataset targetField */ + targetField?: (string|null); + + /** TrainingDataset loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + } + + /** Represents a TrainingDataset. */ + class TrainingDataset implements ITrainingDataset { + + /** + * Constructs a new TrainingDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset); + + /** TrainingDataset dataset. */ + public dataset?: (string|null); + + /** TrainingDataset gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + + /** TrainingDataset bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + + /** TrainingDataset dataFormat. */ + public dataFormat: string; + + /** TrainingDataset targetField. */ + public targetField: string; + + /** TrainingDataset loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + + /** TrainingDataset dataSource. */ + public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); + + /** + * Creates a new TrainingDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainingDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Verifies a TrainingDataset message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * @param message TrainingDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TrainingDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TrainingDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TrainingPredictionSkewDetectionConfig. */ + interface ITrainingPredictionSkewDetectionConfig { + + /** TrainingPredictionSkewDetectionConfig skewThresholds */ + skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ + attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ + defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + } + + /** Represents a TrainingPredictionSkewDetectionConfig. */ + class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { + + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); + + /** TrainingPredictionSkewDetectionConfig skewThresholds. */ + public skewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ + public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ + public defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + + /** + * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * @param [properties] Properties to set * @returns TrainingPredictionSkewDetectionConfig instance */ public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; @@ -85059,139 +87121,6 @@ export namespace google { } } - /** Properties of a FeatureStatsAnomaly. */ - interface IFeatureStatsAnomaly { - - /** FeatureStatsAnomaly score */ - score?: (number|null); - - /** FeatureStatsAnomaly statsUri */ - statsUri?: (string|null); - - /** FeatureStatsAnomaly anomalyUri */ - anomalyUri?: (string|null); - - /** FeatureStatsAnomaly distributionDeviation */ - distributionDeviation?: (number|null); - - /** FeatureStatsAnomaly anomalyDetectionThreshold */ - anomalyDetectionThreshold?: (number|null); - - /** FeatureStatsAnomaly startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** FeatureStatsAnomaly endTime */ - endTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a FeatureStatsAnomaly. */ - class FeatureStatsAnomaly implements IFeatureStatsAnomaly { - - /** - * Constructs a new FeatureStatsAnomaly. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly); - - /** FeatureStatsAnomaly score. */ - public score: number; - - /** FeatureStatsAnomaly statsUri. */ - public statsUri: string; - - /** FeatureStatsAnomaly anomalyUri. */ - public anomalyUri: string; - - /** FeatureStatsAnomaly distributionDeviation. */ - public distributionDeviation: number; - - /** FeatureStatsAnomaly anomalyDetectionThreshold. */ - public anomalyDetectionThreshold: number; - - /** FeatureStatsAnomaly startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** FeatureStatsAnomaly endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new FeatureStatsAnomaly instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureStatsAnomaly instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; - - /** - * Encodes the specified FeatureStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. - * @param message FeatureStatsAnomaly message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. - * @param message FeatureStatsAnomaly message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureStatsAnomaly message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureStatsAnomaly - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; - - /** - * Decodes a FeatureStatsAnomaly message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureStatsAnomaly - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; - - /** - * Verifies a FeatureStatsAnomaly message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FeatureStatsAnomaly message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureStatsAnomaly - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; - - /** - * Creates a plain object from a FeatureStatsAnomaly message. Also converts values to other types if specified. - * @param message FeatureStatsAnomaly - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FeatureStatsAnomaly to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FeatureStatsAnomaly - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - /** Properties of an IdMatcher. */ interface IIdMatcher { @@ -95205,6 +97134,12 @@ export namespace google { /** Index updateTime */ updateTime?: (google.protobuf.ITimestamp|null); + + /** Index indexStats */ + indexStats?: (google.cloud.aiplatform.v1beta1.IIndexStats|null); + + /** Index indexUpdateMethod */ + indexUpdateMethod?: (google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|keyof typeof google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|null); } /** Represents an Index. */ @@ -95246,6 +97181,12 @@ export namespace google { /** Index updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); + /** Index indexStats. */ + public indexStats?: (google.cloud.aiplatform.v1beta1.IIndexStats|null); + + /** Index indexUpdateMethod. */ + public indexUpdateMethod: (google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|keyof typeof google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod); + /** * Creates a new Index instance using the specified properties. * @param [properties] Properties to set @@ -95324,6 +97265,443 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace Index { + + /** IndexUpdateMethod enum. */ + enum IndexUpdateMethod { + INDEX_UPDATE_METHOD_UNSPECIFIED = 0, + BATCH_UPDATE = 1, + STREAM_UPDATE = 2 + } + } + + /** Properties of an IndexDatapoint. */ + interface IIndexDatapoint { + + /** IndexDatapoint datapointId */ + datapointId?: (string|null); + + /** IndexDatapoint featureVector */ + featureVector?: (number[]|null); + + /** IndexDatapoint restricts */ + restricts?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction[]|null); + + /** IndexDatapoint crowdingTag */ + crowdingTag?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null); + } + + /** Represents an IndexDatapoint. */ + class IndexDatapoint implements IIndexDatapoint { + + /** + * Constructs a new IndexDatapoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexDatapoint); + + /** IndexDatapoint datapointId. */ + public datapointId: string; + + /** IndexDatapoint featureVector. */ + public featureVector: number[]; + + /** IndexDatapoint restricts. */ + public restricts: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction[]; + + /** IndexDatapoint crowdingTag. */ + public crowdingTag?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null); + + /** + * Creates a new IndexDatapoint instance using the specified properties. + * @param [properties] Properties to set + * @returns IndexDatapoint instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexDatapoint): google.cloud.aiplatform.v1beta1.IndexDatapoint; + + /** + * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * @param message IndexDatapoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexDatapoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * @param message IndexDatapoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexDatapoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IndexDatapoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IndexDatapoint; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IndexDatapoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IndexDatapoint; + + /** + * Verifies an IndexDatapoint message. + * @param message Plain 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 IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IndexDatapoint + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint; + + /** + * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. + * @param message IndexDatapoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IndexDatapoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IndexDatapoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace IndexDatapoint { + + /** Properties of a Restriction. */ + interface IRestriction { + + /** Restriction namespace */ + namespace?: (string|null); + + /** Restriction allowList */ + allowList?: (string[]|null); + + /** Restriction denyList */ + denyList?: (string[]|null); + } + + /** Represents a Restriction. */ + class Restriction implements IRestriction { + + /** + * Constructs a new Restriction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction); + + /** Restriction namespace. */ + public namespace: string; + + /** Restriction allowList. */ + public allowList: string[]; + + /** Restriction denyList. */ + public denyList: string[]; + + /** + * Creates a new Restriction instance using the specified properties. + * @param [properties] Properties to set + * @returns Restriction instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; + + /** + * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. + * @param message Restriction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. + * @param message Restriction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Restriction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Restriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; + + /** + * Decodes a Restriction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Restriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; + + /** + * Verifies a Restriction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Restriction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Restriction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; + + /** + * Creates a plain object from a Restriction message. Also converts values to other types if specified. + * @param message Restriction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Restriction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Restriction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CrowdingTag. */ + interface ICrowdingTag { + + /** CrowdingTag crowdingAttribute */ + crowdingAttribute?: (string|null); + } + + /** Represents a CrowdingTag. */ + class CrowdingTag implements ICrowdingTag { + + /** + * Constructs a new CrowdingTag. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag); + + /** CrowdingTag crowdingAttribute. */ + public crowdingAttribute: string; + + /** + * Creates a new CrowdingTag instance using the specified properties. + * @param [properties] Properties to set + * @returns CrowdingTag instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag): google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; + + /** + * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @param message CrowdingTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @param message CrowdingTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CrowdingTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CrowdingTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; + + /** + * Verifies a CrowdingTag message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CrowdingTag message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CrowdingTag + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; + + /** + * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. + * @param message CrowdingTag + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CrowdingTag to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CrowdingTag + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an IndexStats. */ + interface IIndexStats { + + /** IndexStats vectorsCount */ + vectorsCount?: (number|Long|string|null); + + /** IndexStats shardsCount */ + shardsCount?: (number|null); + } + + /** Represents an IndexStats. */ + class IndexStats implements IIndexStats { + + /** + * Constructs a new IndexStats. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexStats); + + /** IndexStats vectorsCount. */ + public vectorsCount: (number|Long|string); + + /** IndexStats shardsCount. */ + public shardsCount: number; + + /** + * Creates a new IndexStats instance using the specified properties. + * @param [properties] Properties to set + * @returns IndexStats instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexStats): google.cloud.aiplatform.v1beta1.IndexStats; + + /** + * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * @param message IndexStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * @param message IndexStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IndexStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IndexStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IndexStats; + + /** + * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IndexStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IndexStats; + + /** + * Verifies an IndexStats message. + * @param message Plain 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 IndexStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IndexStats + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexStats; + + /** + * Creates a plain object from an IndexStats message. Also converts values to other types if specified. + * @param message IndexStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IndexStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IndexStats + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an IndexEndpoint. */ interface IIndexEndpoint { @@ -97843,6 +100221,34 @@ export namespace google { * @returns Promise */ public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): Promise; + + /** + * Calls UpsertDatapoints. + * @param request UpsertDatapointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + */ + public upsertDatapoints(request: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapointsCallback): void; + + /** + * Calls UpsertDatapoints. + * @param request UpsertDatapointsRequest message or plain object + * @returns Promise + */ + public upsertDatapoints(request: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest): Promise; + + /** + * Calls RemoveDatapoints. + * @param request RemoveDatapointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RemoveDatapointsResponse + */ + public removeDatapoints(request: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapointsCallback): void; + + /** + * Calls RemoveDatapoints. + * @param request RemoveDatapointsRequest message or plain object + * @returns Promise + */ + public removeDatapoints(request: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest): Promise; } namespace IndexService { @@ -97871,16 +100277,30 @@ export namespace google { /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|updateIndex}. * @param error Error, if any - * @param [response] Operation + * @param [response] Operation + */ + type UpdateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|deleteIndex}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|upsertDatapoints}. + * @param error Error, if any + * @param [response] UpsertDatapointsResponse */ - type UpdateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type UpsertDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|deleteIndex}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|removeDatapoints}. * @param error Error, if any - * @param [response] Operation + * @param [response] RemoveDatapointsResponse */ - type DeleteIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type RemoveDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse) => void; } /** Properties of a CreateIndexRequest. */ @@ -98446,5898 +100866,5369 @@ export namespace google { * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. * @param message UpdateIndexRequest message or plain object to encode * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. - * @param message UpdateIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; - - /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; - - /** - * Verifies an UpdateIndexRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateIndexRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; - - /** - * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. - * @param message UpdateIndexRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateIndexRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateIndexRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateIndexOperationMetadata. */ - interface IUpdateIndexOperationMetadata { - - /** UpdateIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ - nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); - } - - /** Represents an UpdateIndexOperationMetadata. */ - class UpdateIndexOperationMetadata implements IUpdateIndexOperationMetadata { - - /** - * Constructs a new UpdateIndexOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata); - - /** UpdateIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ - public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); - - /** - * Creates a new UpdateIndexOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateIndexOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; - - /** - * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. - * @param message UpdateIndexOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. - * @param message UpdateIndexOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; - - /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; - - /** - * Verifies an UpdateIndexOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateIndexOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; - - /** - * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateIndexOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateIndexOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateIndexOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteIndexRequest. */ - interface IDeleteIndexRequest { - - /** DeleteIndexRequest name */ - name?: (string|null); - } - - /** Represents a DeleteIndexRequest. */ - class DeleteIndexRequest implements IDeleteIndexRequest { - - /** - * Constructs a new DeleteIndexRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest); - - /** DeleteIndexRequest name. */ - public name: string; - - /** - * Creates a new DeleteIndexRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteIndexRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; - - /** - * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. - * @param message DeleteIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. - * @param message DeleteIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; - - /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; - - /** - * Verifies a DeleteIndexRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteIndexRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; - - /** - * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. - * @param message DeleteIndexRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteIndexRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteIndexRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a NearestNeighborSearchOperationMetadata. */ - interface INearestNeighborSearchOperationMetadata { - - /** NearestNeighborSearchOperationMetadata contentValidationStats */ - contentValidationStats?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]|null); - - /** NearestNeighborSearchOperationMetadata dataBytesCount */ - dataBytesCount?: (number|Long|string|null); - } - - /** Represents a NearestNeighborSearchOperationMetadata. */ - class NearestNeighborSearchOperationMetadata implements INearestNeighborSearchOperationMetadata { - - /** - * Constructs a new NearestNeighborSearchOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata); - - /** NearestNeighborSearchOperationMetadata contentValidationStats. */ - public contentValidationStats: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]; - - /** NearestNeighborSearchOperationMetadata dataBytesCount. */ - public dataBytesCount: (number|Long|string); - - /** - * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns NearestNeighborSearchOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; - - /** - * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. - * @param message NearestNeighborSearchOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. - * @param message NearestNeighborSearchOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NearestNeighborSearchOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; - - /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NearestNeighborSearchOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; - - /** - * Verifies a NearestNeighborSearchOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NearestNeighborSearchOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; - - /** - * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. - * @param message NearestNeighborSearchOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NearestNeighborSearchOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for NearestNeighborSearchOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace NearestNeighborSearchOperationMetadata { - - /** Properties of a RecordError. */ - interface IRecordError { - - /** RecordError errorType */ - errorType?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null); - - /** RecordError errorMessage */ - errorMessage?: (string|null); - - /** RecordError sourceGcsUri */ - sourceGcsUri?: (string|null); - - /** RecordError embeddingId */ - embeddingId?: (string|null); - - /** RecordError rawRecord */ - rawRecord?: (string|null); - } - - /** Represents a RecordError. */ - class RecordError implements IRecordError { - - /** - * Constructs a new RecordError. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError); - - /** RecordError errorType. */ - public errorType: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType); - - /** RecordError errorMessage. */ - public errorMessage: string; - - /** RecordError sourceGcsUri. */ - public sourceGcsUri: string; - - /** RecordError embeddingId. */ - public embeddingId: string; - - /** RecordError rawRecord. */ - public rawRecord: string; - - /** - * Creates a new RecordError instance using the specified properties. - * @param [properties] Properties to set - * @returns RecordError instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @param message RecordError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @param message RecordError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RecordError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RecordError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Decodes a RecordError message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Verifies a RecordError message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RecordError message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RecordError - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Creates a plain object from a RecordError message. Also converts values to other types if specified. - * @param message RecordError - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RecordError to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RecordError - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace RecordError { - - /** RecordErrorType enum. */ - enum RecordErrorType { - ERROR_TYPE_UNSPECIFIED = 0, - EMPTY_LINE = 1, - INVALID_JSON_SYNTAX = 2, - INVALID_CSV_SYNTAX = 3, - INVALID_AVRO_SYNTAX = 4, - INVALID_EMBEDDING_ID = 5, - EMBEDDING_SIZE_MISMATCH = 6, - NAMESPACE_MISSING = 7 - } - } + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a ContentValidationStats. */ - interface IContentValidationStats { + /** + * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * @param message UpdateIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ContentValidationStats sourceGcsUri */ - sourceGcsUri?: (string|null); + /** + * Decodes an UpdateIndexRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; - /** ContentValidationStats validRecordCount */ - validRecordCount?: (number|Long|string|null); + /** + * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; - /** ContentValidationStats invalidRecordCount */ - invalidRecordCount?: (number|Long|string|null); + /** + * Verifies an UpdateIndexRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ContentValidationStats partialErrors */ - partialErrors?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]|null); - } + /** + * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIndexRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; - /** Represents a ContentValidationStats. */ - class ContentValidationStats implements IContentValidationStats { + /** + * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. + * @param message UpdateIndexRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new ContentValidationStats. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats); + /** + * Converts this UpdateIndexRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ContentValidationStats sourceGcsUri. */ - public sourceGcsUri: string; + /** + * Gets the default type url for UpdateIndexRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ContentValidationStats validRecordCount. */ - public validRecordCount: (number|Long|string); + /** Properties of an UpdateIndexOperationMetadata. */ + interface IUpdateIndexOperationMetadata { - /** ContentValidationStats invalidRecordCount. */ - public invalidRecordCount: (number|Long|string); + /** UpdateIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ContentValidationStats partialErrors. */ - public partialErrors: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]; + /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ + nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + } - /** - * Creates a new ContentValidationStats instance using the specified properties. - * @param [properties] Properties to set - * @returns ContentValidationStats instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** Represents an UpdateIndexOperationMetadata. */ + class UpdateIndexOperationMetadata implements IUpdateIndexOperationMetadata { - /** - * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @param message ContentValidationStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new UpdateIndexOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata); - /** - * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @param message ContentValidationStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + /** UpdateIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * Decodes a ContentValidationStats message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ + public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); - /** - * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** + * Creates a new UpdateIndexOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateIndexOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; - /** - * Verifies a ContentValidationStats message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * @param message UpdateIndexOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ContentValidationStats - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** + * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * @param message UpdateIndexOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. - * @param message ContentValidationStats - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; - /** - * Converts this ContentValidationStats to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; - /** - * Gets the default type url for ContentValidationStats - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Verifies an UpdateIndexOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Represents a JobService */ - class JobService extends $protobuf.rpc.Service { + /** + * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIndexOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Constructs a new JobService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateIndexOperationMetadata + * @param [options] Conversion options + * @returns Plain object */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Creates new JobService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Converts this UpdateIndexOperationMetadata to JSON. + * @returns JSON object */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobService; + public toJSON(): { [k: string]: any }; /** - * Calls CreateCustomJob. - * @param request CreateCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomJob + * Gets the default type url for UpdateIndexOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteIndexRequest. */ + interface IDeleteIndexRequest { + + /** DeleteIndexRequest name */ + name?: (string|null); + } + + /** Represents a DeleteIndexRequest. */ + class DeleteIndexRequest implements IDeleteIndexRequest { /** - * Calls CreateCustomJob. - * @param request CreateCustomJobRequest message or plain object - * @returns Promise + * Constructs a new DeleteIndexRequest. + * @param [properties] Properties to set */ - public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest); + + /** DeleteIndexRequest name. */ + public name: string; /** - * Calls GetCustomJob. - * @param request GetCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomJob + * Creates a new DeleteIndexRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteIndexRequest instance */ - public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Calls GetCustomJob. - * @param request GetCustomJobRequest message or plain object - * @returns Promise + * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * @param message DeleteIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListCustomJobs. - * @param request ListCustomJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListCustomJobsResponse + * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * @param message DeleteIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListCustomJobs. - * @param request ListCustomJobsRequest message or plain object - * @returns Promise + * Decodes a DeleteIndexRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Calls DeleteCustomJob. - * @param request DeleteCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Calls DeleteCustomJob. - * @param request DeleteCustomJobRequest message or plain object - * @returns Promise + * Verifies a DeleteIndexRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CancelCustomJob. - * @param request CancelCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteIndexRequest */ - public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Calls CancelCustomJob. - * @param request CancelCustomJobRequest message or plain object - * @returns Promise + * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. + * @param message DeleteIndexRequest + * @param [options] Conversion options + * @returns Plain object */ - public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CreateDataLabelingJob. - * @param request CreateDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataLabelingJob + * Converts this DeleteIndexRequest to JSON. + * @returns JSON object */ - public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls CreateDataLabelingJob. - * @param request CreateDataLabelingJobRequest message or plain object - * @returns Promise + * Gets the default type url for DeleteIndexRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpsertDatapointsRequest. */ + interface IUpsertDatapointsRequest { + + /** UpsertDatapointsRequest index */ + index?: (string|null); + + /** UpsertDatapointsRequest datapoints */ + datapoints?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint[]|null); + } + + /** Represents an UpsertDatapointsRequest. */ + class UpsertDatapointsRequest implements IUpsertDatapointsRequest { /** - * Calls GetDataLabelingJob. - * @param request GetDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataLabelingJob + * Constructs a new UpsertDatapointsRequest. + * @param [properties] Properties to set */ - public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest); + + /** UpsertDatapointsRequest index. */ + public index: string; + + /** UpsertDatapointsRequest datapoints. */ + public datapoints: google.cloud.aiplatform.v1beta1.IIndexDatapoint[]; /** - * Calls GetDataLabelingJob. - * @param request GetDataLabelingJobRequest message or plain object - * @returns Promise + * Creates a new UpsertDatapointsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpsertDatapointsRequest instance */ - public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; /** - * Calls ListDataLabelingJobs. - * @param request ListDataLabelingJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse + * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. + * @param message UpsertDatapointsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListDataLabelingJobs. - * @param request ListDataLabelingJobsRequest message or plain object - * @returns Promise + * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. + * @param message UpsertDatapointsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteDataLabelingJob. - * @param request DeleteDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpsertDatapointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; /** - * Calls DeleteDataLabelingJob. - * @param request DeleteDataLabelingJobRequest message or plain object - * @returns Promise + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpsertDatapointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; /** - * Calls CancelDataLabelingJob. - * @param request CancelDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Verifies an UpsertDatapointsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CancelDataLabelingJob. - * @param request CancelDataLabelingJobRequest message or plain object - * @returns Promise + * Creates an UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpsertDatapointsRequest */ - public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; /** - * Calls CreateHyperparameterTuningJob. - * @param request CreateHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. + * @param message UpsertDatapointsRequest + * @param [options] Conversion options + * @returns Plain object */ - public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CreateHyperparameterTuningJob. - * @param request CreateHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Converts this UpsertDatapointsRequest to JSON. + * @returns JSON object */ - public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls GetHyperparameterTuningJob. - * @param request GetHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * Gets the default type url for UpsertDatapointsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpsertDatapointsResponse. */ + interface IUpsertDatapointsResponse { + } + + /** Represents an UpsertDatapointsResponse. */ + class UpsertDatapointsResponse implements IUpsertDatapointsResponse { /** - * Calls GetHyperparameterTuningJob. - * @param request GetHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Constructs a new UpsertDatapointsResponse. + * @param [properties] Properties to set */ - public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse); /** - * Calls ListHyperparameterTuningJobs. - * @param request ListHyperparameterTuningJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse + * Creates a new UpsertDatapointsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpsertDatapointsResponse instance */ - public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; /** - * Calls ListHyperparameterTuningJobs. - * @param request ListHyperparameterTuningJobsRequest message or plain object - * @returns Promise + * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. + * @param message UpsertDatapointsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteHyperparameterTuningJob. - * @param request DeleteHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. + * @param message UpsertDatapointsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteHyperparameterTuningJob. - * @param request DeleteHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpsertDatapointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; /** - * Calls CancelHyperparameterTuningJob. - * @param request CancelHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpsertDatapointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; /** - * Calls CancelHyperparameterTuningJob. - * @param request CancelHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Verifies an UpsertDatapointsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateBatchPredictionJob. - * @param request CreateBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchPredictionJob + * Creates an UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpsertDatapointsResponse */ - public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; /** - * Calls CreateBatchPredictionJob. - * @param request CreateBatchPredictionJobRequest message or plain object - * @returns Promise + * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. + * @param message UpsertDatapointsResponse + * @param [options] Conversion options + * @returns Plain object */ - public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetBatchPredictionJob. - * @param request GetBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchPredictionJob + * Converts this UpsertDatapointsResponse to JSON. + * @returns JSON object */ - public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback): void; + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpsertDatapointsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveDatapointsRequest. */ + interface IRemoveDatapointsRequest { + + /** RemoveDatapointsRequest index */ + index?: (string|null); + + /** RemoveDatapointsRequest datapointIds */ + datapointIds?: (string[]|null); + } - /** - * Calls GetBatchPredictionJob. - * @param request GetBatchPredictionJobRequest message or plain object - * @returns Promise - */ - public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): Promise; + /** Represents a RemoveDatapointsRequest. */ + class RemoveDatapointsRequest implements IRemoveDatapointsRequest { /** - * Calls ListBatchPredictionJobs. - * @param request ListBatchPredictionJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse + * Constructs a new RemoveDatapointsRequest. + * @param [properties] Properties to set */ - public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest); + + /** RemoveDatapointsRequest index. */ + public index: string; + + /** RemoveDatapointsRequest datapointIds. */ + public datapointIds: string[]; /** - * Calls ListBatchPredictionJobs. - * @param request ListBatchPredictionJobsRequest message or plain object - * @returns Promise + * Creates a new RemoveDatapointsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveDatapointsRequest instance */ - public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; /** - * Calls DeleteBatchPredictionJob. - * @param request DeleteBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. + * @param message RemoveDatapointsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteBatchPredictionJob. - * @param request DeleteBatchPredictionJobRequest message or plain object - * @returns Promise + * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. + * @param message RemoveDatapointsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelBatchPredictionJob. - * @param request CancelBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveDatapointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; /** - * Calls CancelBatchPredictionJob. - * @param request CancelBatchPredictionJobRequest message or plain object - * @returns Promise + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveDatapointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; /** - * Calls CreateModelDeploymentMonitoringJob. - * @param request CreateModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * Verifies a RemoveDatapointsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateModelDeploymentMonitoringJob. - * @param request CreateModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Creates a RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveDatapointsRequest */ - public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. + * @param message RemoveDatapointsRequest + * @param [options] Conversion options + * @returns Plain object */ - public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, callback: google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @returns Promise + * Converts this RemoveDatapointsRequest to JSON. + * @returns JSON object */ - public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls GetModelDeploymentMonitoringJob. - * @param request GetModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * Gets the default type url for RemoveDatapointsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveDatapointsResponse. */ + interface IRemoveDatapointsResponse { + } + + /** Represents a RemoveDatapointsResponse. */ + class RemoveDatapointsResponse implements IRemoveDatapointsResponse { /** - * Calls GetModelDeploymentMonitoringJob. - * @param request GetModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Constructs a new RemoveDatapointsResponse. + * @param [properties] Properties to set */ - public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse); /** - * Calls ListModelDeploymentMonitoringJobs. - * @param request ListModelDeploymentMonitoringJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse + * Creates a new RemoveDatapointsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveDatapointsResponse instance */ - public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; /** - * Calls ListModelDeploymentMonitoringJobs. - * @param request ListModelDeploymentMonitoringJobsRequest message or plain object - * @returns Promise + * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. + * @param message RemoveDatapointsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. + * @param message RemoveDatapointsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveDatapointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveDatapointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Verifies a RemoveDatapointsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls PauseModelDeploymentMonitoringJob. - * @param request PauseModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveDatapointsResponse */ - public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; /** - * Calls PauseModelDeploymentMonitoringJob. - * @param request PauseModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. + * @param message RemoveDatapointsResponse + * @param [options] Conversion options + * @returns Plain object */ - public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Converts this RemoveDatapointsResponse to JSON. + * @returns JSON object */ - public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Gets the default type url for RemoveDatapointsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace JobService { + /** Properties of a NearestNeighborSearchOperationMetadata. */ + interface INearestNeighborSearchOperationMetadata { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createCustomJob}. - * @param error Error, if any - * @param [response] CustomJob - */ - type CreateCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; + /** NearestNeighborSearchOperationMetadata contentValidationStats */ + contentValidationStats?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getCustomJob}. - * @param error Error, if any - * @param [response] CustomJob - */ - type GetCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; + /** NearestNeighborSearchOperationMetadata dataBytesCount */ + dataBytesCount?: (number|Long|string|null); + } + + /** Represents a NearestNeighborSearchOperationMetadata. */ + class NearestNeighborSearchOperationMetadata implements INearestNeighborSearchOperationMetadata { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listCustomJobs}. - * @param error Error, if any - * @param [response] ListCustomJobsResponse + * Constructs a new NearestNeighborSearchOperationMetadata. + * @param [properties] Properties to set */ - type ListCustomJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata); + + /** NearestNeighborSearchOperationMetadata contentValidationStats. */ + public contentValidationStats: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]; + + /** NearestNeighborSearchOperationMetadata dataBytesCount. */ + public dataBytesCount: (number|Long|string); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteCustomJob}. - * @param error Error, if any - * @param [response] Operation + * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns NearestNeighborSearchOperationMetadata instance */ - type DeleteCustomJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelCustomJob}. - * @param error Error, if any - * @param [response] Empty + * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * @param message NearestNeighborSearchOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CancelCustomJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createDataLabelingJob}. - * @param error Error, if any - * @param [response] DataLabelingJob + * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * @param message NearestNeighborSearchOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getDataLabelingJob}. - * @param error Error, if any - * @param [response] DataLabelingJob + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NearestNeighborSearchOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listDataLabelingJobs}. - * @param error Error, if any - * @param [response] ListDataLabelingJobsResponse + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NearestNeighborSearchOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListDataLabelingJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteDataLabelingJob}. - * @param error Error, if any - * @param [response] Operation + * Verifies a NearestNeighborSearchOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type DeleteDataLabelingJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelDataLabelingJob}. - * @param error Error, if any - * @param [response] Empty + * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NearestNeighborSearchOperationMetadata */ - type CancelDataLabelingJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] HyperparameterTuningJob + * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. + * @param message NearestNeighborSearchOperationMetadata + * @param [options] Conversion options + * @returns Plain object */ - type CreateHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] HyperparameterTuningJob + * Converts this NearestNeighborSearchOperationMetadata to JSON. + * @returns JSON object */ - type GetHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listHyperparameterTuningJobs}. - * @param error Error, if any - * @param [response] ListHyperparameterTuningJobsResponse + * Gets the default type url for NearestNeighborSearchOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListHyperparameterTuningJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NearestNeighborSearchOperationMetadata { + + /** Properties of a RecordError. */ + interface IRecordError { + + /** RecordError errorType */ + errorType?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null); + + /** RecordError errorMessage */ + errorMessage?: (string|null); + + /** RecordError sourceGcsUri */ + sourceGcsUri?: (string|null); + + /** RecordError embeddingId */ + embeddingId?: (string|null); + + /** RecordError rawRecord */ + rawRecord?: (string|null); + } + + /** Represents a RecordError. */ + class RecordError implements IRecordError { + + /** + * Constructs a new RecordError. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError); + + /** RecordError errorType. */ + public errorType: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType); + + /** RecordError errorMessage. */ + public errorMessage: string; + + /** RecordError sourceGcsUri. */ + public sourceGcsUri: string; + + /** RecordError embeddingId. */ + public embeddingId: string; + + /** RecordError rawRecord. */ + public rawRecord: string; + + /** + * Creates a new RecordError instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordError instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @param message RecordError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @param message RecordError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecordError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Decodes a RecordError message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecordError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Verifies a RecordError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RecordError message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordError + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Creates a plain object from a RecordError message. Also converts values to other types if specified. + * @param message RecordError + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecordError to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecordError + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace RecordError { + + /** RecordErrorType enum. */ + enum RecordErrorType { + ERROR_TYPE_UNSPECIFIED = 0, + EMPTY_LINE = 1, + INVALID_JSON_SYNTAX = 2, + INVALID_CSV_SYNTAX = 3, + INVALID_AVRO_SYNTAX = 4, + INVALID_EMBEDDING_ID = 5, + EMBEDDING_SIZE_MISMATCH = 6, + NAMESPACE_MISSING = 7 + } + } + + /** Properties of a ContentValidationStats. */ + interface IContentValidationStats { + + /** ContentValidationStats sourceGcsUri */ + sourceGcsUri?: (string|null); + + /** ContentValidationStats validRecordCount */ + validRecordCount?: (number|Long|string|null); + + /** ContentValidationStats invalidRecordCount */ + invalidRecordCount?: (number|Long|string|null); + + /** ContentValidationStats partialErrors */ + partialErrors?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]|null); + } + + /** Represents a ContentValidationStats. */ + class ContentValidationStats implements IContentValidationStats { + + /** + * Constructs a new ContentValidationStats. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats); + + /** ContentValidationStats sourceGcsUri. */ + public sourceGcsUri: string; + + /** ContentValidationStats validRecordCount. */ + public validRecordCount: (number|Long|string); + + /** ContentValidationStats invalidRecordCount. */ + public invalidRecordCount: (number|Long|string); + + /** ContentValidationStats partialErrors. */ + public partialErrors: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]; + + /** + * Creates a new ContentValidationStats instance using the specified properties. + * @param [properties] Properties to set + * @returns ContentValidationStats instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @param message ContentValidationStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @param message ContentValidationStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContentValidationStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Verifies a ContentValidationStats message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContentValidationStats + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. + * @param message ContentValidationStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteHyperparameterTuningJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Converts this ContentValidationStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] Empty - */ - type CancelHyperparameterTuningJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** + * Gets the default type url for ContentValidationStats + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Represents a JobService */ + class JobService extends $protobuf.rpc.Service { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createBatchPredictionJob}. - * @param error Error, if any - * @param [response] BatchPredictionJob + * Constructs a new JobService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - type CreateBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getBatchPredictionJob}. - * @param error Error, if any - * @param [response] BatchPredictionJob + * Creates new JobService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - type GetBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobService; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listBatchPredictionJobs}. - * @param error Error, if any - * @param [response] ListBatchPredictionJobsResponse + * Calls CreateCustomJob. + * @param request CreateCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomJob */ - type ListBatchPredictionJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) => void; + public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteBatchPredictionJob}. - * @param error Error, if any - * @param [response] Operation + * Calls CreateCustomJob. + * @param request CreateCustomJobRequest message or plain object + * @returns Promise */ - type DeleteBatchPredictionJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelBatchPredictionJob}. - * @param error Error, if any - * @param [response] Empty + * Calls GetCustomJob. + * @param request GetCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomJob */ - type CancelBatchPredictionJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] ModelDeploymentMonitoringJob + * Calls GetCustomJob. + * @param request GetCustomJobRequest message or plain object + * @returns Promise */ - type CreateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; + public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. - * @param error Error, if any - * @param [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Calls ListCustomJobs. + * @param request ListCustomJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListCustomJobsResponse */ - type SearchModelDeploymentMonitoringStatsAnomaliesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) => void; + public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] ModelDeploymentMonitoringJob + * Calls ListCustomJobs. + * @param request ListCustomJobsRequest message or plain object + * @returns Promise */ - type GetModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; + public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listModelDeploymentMonitoringJobs}. - * @param error Error, if any - * @param [response] ListModelDeploymentMonitoringJobsResponse + * Calls DeleteCustomJob. + * @param request DeleteCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - type ListModelDeploymentMonitoringJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) => void; + public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|updateModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Operation + * Calls DeleteCustomJob. + * @param request DeleteCustomJobRequest message or plain object + * @returns Promise */ - type UpdateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Operation + * Calls CancelCustomJob. + * @param request CancelCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - type DeleteModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|pauseModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Empty + * Calls CancelCustomJob. + * @param request CancelCustomJobRequest message or plain object + * @returns Promise */ - type PauseModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|resumeModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Empty + * Calls CreateDataLabelingJob. + * @param request CreateDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataLabelingJob */ - type ResumeModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } - - /** Properties of a CreateCustomJobRequest. */ - interface ICreateCustomJobRequest { - - /** CreateCustomJobRequest parent */ - parent?: (string|null); - - /** CreateCustomJobRequest customJob */ - customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); - } - - /** Represents a CreateCustomJobRequest. */ - class CreateCustomJobRequest implements ICreateCustomJobRequest { + public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback): void; /** - * Constructs a new CreateCustomJobRequest. - * @param [properties] Properties to set + * Calls CreateDataLabelingJob. + * @param request CreateDataLabelingJobRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest); - - /** CreateCustomJobRequest parent. */ - public parent: string; - - /** CreateCustomJobRequest customJob. */ - public customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); + public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): Promise; /** - * Creates a new CreateCustomJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateCustomJobRequest instance + * Calls GetDataLabelingJob. + * @param request GetDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataLabelingJob */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback): void; /** - * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. - * @param message CreateCustomJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetDataLabelingJob. + * @param request GetDataLabelingJobRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): Promise; /** - * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. - * @param message CreateCustomJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListDataLabelingJobs. + * @param request ListDataLabelingJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback): void; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListDataLabelingJobs. + * @param request ListDataLabelingJobsRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): Promise; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteDataLabelingJob. + * @param request DeleteDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback): void; /** - * Verifies a CreateCustomJobRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteDataLabelingJob. + * @param request DeleteDataLabelingJobRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): Promise; /** - * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateCustomJobRequest + * Calls CancelDataLabelingJob. + * @param request CancelDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback): void; /** - * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. - * @param message CreateCustomJobRequest - * @param [options] Conversion options - * @returns Plain object + * Calls CancelDataLabelingJob. + * @param request CancelDataLabelingJobRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): Promise; /** - * Converts this CreateCustomJobRequest to JSON. - * @returns JSON object + * Calls CreateHyperparameterTuningJob. + * @param request CreateHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob */ - public toJSON(): { [k: string]: any }; + public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback): void; /** - * Gets the default type url for CreateCustomJobRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CreateHyperparameterTuningJob. + * @param request CreateHyperparameterTuningJobRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCustomJobRequest. */ - interface IGetCustomJobRequest { - - /** GetCustomJobRequest name */ - name?: (string|null); - } - - /** Represents a GetCustomJobRequest. */ - class GetCustomJobRequest implements IGetCustomJobRequest { + public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): Promise; /** - * Constructs a new GetCustomJobRequest. - * @param [properties] Properties to set + * Calls GetHyperparameterTuningJob. + * @param request GetHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest); - - /** GetCustomJobRequest name. */ - public name: string; + public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback): void; /** - * Creates a new GetCustomJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCustomJobRequest instance + * Calls GetHyperparameterTuningJob. + * @param request GetHyperparameterTuningJobRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): Promise; /** - * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. - * @param message GetCustomJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListHyperparameterTuningJobs. + * @param request ListHyperparameterTuningJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback): void; /** - * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. - * @param message GetCustomJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListHyperparameterTuningJobs. + * @param request ListHyperparameterTuningJobsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): Promise; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteHyperparameterTuningJob. + * @param request DeleteHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback): void; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteHyperparameterTuningJob. + * @param request DeleteHyperparameterTuningJobRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): Promise; /** - * Verifies a GetCustomJobRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CancelHyperparameterTuningJob. + * @param request CancelHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static verify(message: { [k: string]: any }): (string|null); + public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback): void; /** - * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCustomJobRequest + * Calls CancelHyperparameterTuningJob. + * @param request CancelHyperparameterTuningJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): Promise; /** - * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. - * @param message GetCustomJobRequest - * @param [options] Conversion options - * @returns Plain object + * Calls CreateBatchPredictionJob. + * @param request CreateBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchPredictionJob */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback): void; /** - * Converts this GetCustomJobRequest to JSON. - * @returns JSON object + * Calls CreateBatchPredictionJob. + * @param request CreateBatchPredictionJobRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): Promise; /** - * Gets the default type url for GetCustomJobRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls GetBatchPredictionJob. + * @param request GetBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchPredictionJob */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListCustomJobsRequest. */ - interface IListCustomJobsRequest { - - /** ListCustomJobsRequest parent */ - parent?: (string|null); - - /** ListCustomJobsRequest filter */ - filter?: (string|null); - - /** ListCustomJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListCustomJobsRequest pageToken */ - pageToken?: (string|null); - - /** ListCustomJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents a ListCustomJobsRequest. */ - class ListCustomJobsRequest implements IListCustomJobsRequest { + public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback): void; /** - * Constructs a new ListCustomJobsRequest. - * @param [properties] Properties to set + * Calls GetBatchPredictionJob. + * @param request GetBatchPredictionJobRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest); - - /** ListCustomJobsRequest parent. */ - public parent: string; - - /** ListCustomJobsRequest filter. */ - public filter: string; - - /** ListCustomJobsRequest pageSize. */ - public pageSize: number; - - /** ListCustomJobsRequest pageToken. */ - public pageToken: string; - - /** ListCustomJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): Promise; /** - * Creates a new ListCustomJobsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListCustomJobsRequest instance + * Calls ListBatchPredictionJobs. + * @param request ListBatchPredictionJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback): void; /** - * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. - * @param message ListCustomJobsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListBatchPredictionJobs. + * @param request ListBatchPredictionJobsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): Promise; /** - * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. - * @param message ListCustomJobsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteBatchPredictionJob. + * @param request DeleteBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback): void; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListCustomJobsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteBatchPredictionJob. + * @param request DeleteBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): Promise; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListCustomJobsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CancelBatchPredictionJob. + * @param request CancelBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback): void; /** - * Verifies a ListCustomJobsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CancelBatchPredictionJob. + * @param request CancelBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): Promise; /** - * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListCustomJobsRequest + * Calls CreateModelDeploymentMonitoringJob. + * @param request CreateModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback): void; /** - * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. - * @param message ListCustomJobsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls CreateModelDeploymentMonitoringJob. + * @param request CreateModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): Promise; /** - * Converts this ListCustomJobsRequest to JSON. - * @returns JSON object + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public toJSON(): { [k: string]: any }; + public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, callback: google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback): void; /** - * Gets the default type url for ListCustomJobsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListCustomJobsResponse. */ - interface IListCustomJobsResponse { - - /** ListCustomJobsResponse customJobs */ - customJobs?: (google.cloud.aiplatform.v1beta1.ICustomJob[]|null); - - /** ListCustomJobsResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListCustomJobsResponse. */ - class ListCustomJobsResponse implements IListCustomJobsResponse { + public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): Promise; /** - * Constructs a new ListCustomJobsResponse. - * @param [properties] Properties to set + * Calls GetModelDeploymentMonitoringJob. + * @param request GetModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse); - - /** ListCustomJobsResponse customJobs. */ - public customJobs: google.cloud.aiplatform.v1beta1.ICustomJob[]; + public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback): void; - /** ListCustomJobsResponse nextPageToken. */ - public nextPageToken: string; + /** + * Calls GetModelDeploymentMonitoringJob. + * @param request GetModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise + */ + public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): Promise; /** - * Creates a new ListCustomJobsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListCustomJobsResponse instance + * Calls ListModelDeploymentMonitoringJobs. + * @param request ListModelDeploymentMonitoringJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback): void; /** - * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. - * @param message ListCustomJobsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListModelDeploymentMonitoringJobs. + * @param request ListModelDeploymentMonitoringJobsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): Promise; /** - * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. - * @param message ListCustomJobsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdateModelDeploymentMonitoringJob. + * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback): void; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListCustomJobsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateModelDeploymentMonitoringJob. + * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): Promise; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListCustomJobsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelDeploymentMonitoringJob. + * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback): void; /** - * Verifies a ListCustomJobsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteModelDeploymentMonitoringJob. + * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): Promise; /** - * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListCustomJobsResponse + * Calls PauseModelDeploymentMonitoringJob. + * @param request PauseModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback): void; /** - * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. - * @param message ListCustomJobsResponse - * @param [options] Conversion options - * @returns Plain object + * Calls PauseModelDeploymentMonitoringJob. + * @param request PauseModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): Promise; /** - * Converts this ListCustomJobsResponse to JSON. - * @returns JSON object + * Calls ResumeModelDeploymentMonitoringJob. + * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public toJSON(): { [k: string]: any }; + public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback): void; /** - * Gets the default type url for ListCustomJobsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ResumeModelDeploymentMonitoringJob. + * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; + public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): Promise; } - /** Properties of a DeleteCustomJobRequest. */ - interface IDeleteCustomJobRequest { - - /** DeleteCustomJobRequest name */ - name?: (string|null); - } + namespace JobService { - /** Represents a DeleteCustomJobRequest. */ - class DeleteCustomJobRequest implements IDeleteCustomJobRequest { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createCustomJob}. + * @param error Error, if any + * @param [response] CustomJob + */ + type CreateCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; /** - * Constructs a new DeleteCustomJobRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getCustomJob}. + * @param error Error, if any + * @param [response] CustomJob */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest); + type GetCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; - /** DeleteCustomJobRequest name. */ - public name: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listCustomJobs}. + * @param error Error, if any + * @param [response] ListCustomJobsResponse + */ + type ListCustomJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) => void; /** - * Creates a new DeleteCustomJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteCustomJobRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteCustomJob}. + * @param error Error, if any + * @param [response] Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + type DeleteCustomJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. - * @param message DeleteCustomJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelCustomJob}. + * @param error Error, if any + * @param [response] Empty */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CancelCustomJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. - * @param message DeleteCustomJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createDataLabelingJob}. + * @param error Error, if any + * @param [response] DataLabelingJob */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getDataLabelingJob}. + * @param error Error, if any + * @param [response] DataLabelingJob */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + type GetDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listDataLabelingJobs}. + * @param error Error, if any + * @param [response] ListDataLabelingJobsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + type ListDataLabelingJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) => void; /** - * Verifies a DeleteCustomJobRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteDataLabelingJob}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type DeleteDataLabelingJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteCustomJobRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelDataLabelingJob}. + * @param error Error, if any + * @param [response] Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + type CancelDataLabelingJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. - * @param message DeleteCustomJobRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] HyperparameterTuningJob */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type CreateHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; /** - * Converts this DeleteCustomJobRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] HyperparameterTuningJob */ - public toJSON(): { [k: string]: any }; + type GetHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; /** - * Gets the default type url for DeleteCustomJobRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listHyperparameterTuningJobs}. + * @param error Error, if any + * @param [response] ListHyperparameterTuningJobsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + type ListHyperparameterTuningJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) => void; - /** Properties of a CancelCustomJobRequest. */ - interface ICancelCustomJobRequest { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteHyperparameterTuningJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** CancelCustomJobRequest name */ - name?: (string|null); - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelHyperparameterTuningJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** Represents a CancelCustomJobRequest. */ - class CancelCustomJobRequest implements ICancelCustomJobRequest { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createBatchPredictionJob}. + * @param error Error, if any + * @param [response] BatchPredictionJob + */ + type CreateBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; /** - * Constructs a new CancelCustomJobRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getBatchPredictionJob}. + * @param error Error, if any + * @param [response] BatchPredictionJob */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest); + type GetBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; - /** CancelCustomJobRequest name. */ - public name: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listBatchPredictionJobs}. + * @param error Error, if any + * @param [response] ListBatchPredictionJobsResponse + */ + type ListBatchPredictionJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) => void; /** - * Creates a new CancelCustomJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CancelCustomJobRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteBatchPredictionJob}. + * @param error Error, if any + * @param [response] Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + type DeleteBatchPredictionJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. - * @param message CancelCustomJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelBatchPredictionJob}. + * @param error Error, if any + * @param [response] Empty */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CancelBatchPredictionJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. - * @param message CancelCustomJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] ModelDeploymentMonitoringJob */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CancelCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. + * @param error Error, if any + * @param [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + type SearchModelDeploymentMonitoringStatsAnomaliesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) => void; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CancelCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] ModelDeploymentMonitoringJob */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + type GetModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; /** - * Verifies a CancelCustomJobRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listModelDeploymentMonitoringJobs}. + * @param error Error, if any + * @param [response] ListModelDeploymentMonitoringJobsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListModelDeploymentMonitoringJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) => void; /** - * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CancelCustomJobRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|updateModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + type UpdateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. - * @param message CancelCustomJobRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this CancelCustomJobRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|pauseModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Empty */ - public toJSON(): { [k: string]: any }; + type PauseModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Gets the default type url for CancelCustomJobRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|resumeModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Empty */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type ResumeModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a CreateDataLabelingJobRequest. */ - interface ICreateDataLabelingJobRequest { + /** Properties of a CreateCustomJobRequest. */ + interface ICreateCustomJobRequest { - /** CreateDataLabelingJobRequest parent */ + /** CreateCustomJobRequest parent */ parent?: (string|null); - /** CreateDataLabelingJobRequest dataLabelingJob */ - dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); + /** CreateCustomJobRequest customJob */ + customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); } - /** Represents a CreateDataLabelingJobRequest. */ - class CreateDataLabelingJobRequest implements ICreateDataLabelingJobRequest { + /** Represents a CreateCustomJobRequest. */ + class CreateCustomJobRequest implements ICreateCustomJobRequest { /** - * Constructs a new CreateDataLabelingJobRequest. + * Constructs a new CreateCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest); - /** CreateDataLabelingJobRequest parent. */ + /** CreateCustomJobRequest parent. */ public parent: string; - /** CreateDataLabelingJobRequest dataLabelingJob. */ - public dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); + /** CreateCustomJobRequest customJob. */ + public customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); /** - * Creates a new CreateDataLabelingJobRequest instance using the specified properties. + * Creates a new CreateCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDataLabelingJobRequest instance + * @returns CreateCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @param message CreateDataLabelingJobRequest message or plain object to encode + * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * @param message CreateCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @param message CreateDataLabelingJobRequest message or plain object to encode + * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * @param message CreateCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDataLabelingJobRequest + * @returns CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDataLabelingJobRequest + * @returns CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Verifies a CreateDataLabelingJobRequest message. + * Verifies a CreateCustomJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDataLabelingJobRequest + * @returns CreateCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message CreateDataLabelingJobRequest + * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. + * @param message CreateCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDataLabelingJobRequest to JSON. + * Converts this CreateCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateDataLabelingJobRequest + * Gets the default type url for CreateCustomJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetDataLabelingJobRequest. */ - interface IGetDataLabelingJobRequest { + /** Properties of a GetCustomJobRequest. */ + interface IGetCustomJobRequest { - /** GetDataLabelingJobRequest name */ + /** GetCustomJobRequest name */ name?: (string|null); } - /** Represents a GetDataLabelingJobRequest. */ - class GetDataLabelingJobRequest implements IGetDataLabelingJobRequest { + /** Represents a GetCustomJobRequest. */ + class GetCustomJobRequest implements IGetCustomJobRequest { /** - * Constructs a new GetDataLabelingJobRequest. + * Constructs a new GetCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest); - /** GetDataLabelingJobRequest name. */ + /** GetCustomJobRequest name. */ public name: string; /** - * Creates a new GetDataLabelingJobRequest instance using the specified properties. + * Creates a new GetCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataLabelingJobRequest instance + * @returns GetCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. - * @param message GetDataLabelingJobRequest message or plain object to encode + * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * @param message GetCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. - * @param message GetDataLabelingJobRequest message or plain object to encode + * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * @param message GetCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a GetCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDataLabelingJobRequest + * @returns GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDataLabelingJobRequest + * @returns GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Verifies a GetDataLabelingJobRequest message. + * Verifies a GetCustomJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDataLabelingJobRequest + * @returns GetCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message GetDataLabelingJobRequest + * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. + * @param message GetCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDataLabelingJobRequest to JSON. + * Converts this GetCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetDataLabelingJobRequest + * Gets the default type url for GetCustomJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDataLabelingJobsRequest. */ - interface IListDataLabelingJobsRequest { + /** Properties of a ListCustomJobsRequest. */ + interface IListCustomJobsRequest { - /** ListDataLabelingJobsRequest parent */ + /** ListCustomJobsRequest parent */ parent?: (string|null); - /** ListDataLabelingJobsRequest filter */ + /** ListCustomJobsRequest filter */ filter?: (string|null); - /** ListDataLabelingJobsRequest pageSize */ + /** ListCustomJobsRequest pageSize */ pageSize?: (number|null); - /** ListDataLabelingJobsRequest pageToken */ + /** ListCustomJobsRequest pageToken */ pageToken?: (string|null); - /** ListDataLabelingJobsRequest readMask */ + /** ListCustomJobsRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); - - /** ListDataLabelingJobsRequest orderBy */ - orderBy?: (string|null); } - /** Represents a ListDataLabelingJobsRequest. */ - class ListDataLabelingJobsRequest implements IListDataLabelingJobsRequest { + /** Represents a ListCustomJobsRequest. */ + class ListCustomJobsRequest implements IListCustomJobsRequest { /** - * Constructs a new ListDataLabelingJobsRequest. + * Constructs a new ListCustomJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest); - /** ListDataLabelingJobsRequest parent. */ + /** ListCustomJobsRequest parent. */ public parent: string; - /** ListDataLabelingJobsRequest filter. */ + /** ListCustomJobsRequest filter. */ public filter: string; - /** ListDataLabelingJobsRequest pageSize. */ + /** ListCustomJobsRequest pageSize. */ public pageSize: number; - /** ListDataLabelingJobsRequest pageToken. */ + /** ListCustomJobsRequest pageToken. */ public pageToken: string; - /** ListDataLabelingJobsRequest readMask. */ + /** ListCustomJobsRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); - /** ListDataLabelingJobsRequest orderBy. */ - public orderBy: string; - /** - * Creates a new ListDataLabelingJobsRequest instance using the specified properties. + * Creates a new ListCustomJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataLabelingJobsRequest instance + * @returns ListCustomJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. - * @param message ListDataLabelingJobsRequest message or plain object to encode + * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * @param message ListCustomJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. - * @param message ListDataLabelingJobsRequest message or plain object to encode + * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * @param message ListCustomJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataLabelingJobsRequest + * @returns ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataLabelingJobsRequest + * @returns ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Verifies a ListDataLabelingJobsRequest message. + * Verifies a ListCustomJobsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataLabelingJobsRequest + * @returns ListCustomJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. - * @param message ListDataLabelingJobsRequest + * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. + * @param message ListCustomJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataLabelingJobsRequest to JSON. + * Converts this ListCustomJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDataLabelingJobsRequest + * Gets the default type url for ListCustomJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDataLabelingJobsResponse. */ - interface IListDataLabelingJobsResponse { + /** Properties of a ListCustomJobsResponse. */ + interface IListCustomJobsResponse { - /** ListDataLabelingJobsResponse dataLabelingJobs */ - dataLabelingJobs?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob[]|null); + /** ListCustomJobsResponse customJobs */ + customJobs?: (google.cloud.aiplatform.v1beta1.ICustomJob[]|null); - /** ListDataLabelingJobsResponse nextPageToken */ + /** ListCustomJobsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListDataLabelingJobsResponse. */ - class ListDataLabelingJobsResponse implements IListDataLabelingJobsResponse { + /** Represents a ListCustomJobsResponse. */ + class ListCustomJobsResponse implements IListCustomJobsResponse { /** - * Constructs a new ListDataLabelingJobsResponse. + * Constructs a new ListCustomJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse); - /** ListDataLabelingJobsResponse dataLabelingJobs. */ - public dataLabelingJobs: google.cloud.aiplatform.v1beta1.IDataLabelingJob[]; + /** ListCustomJobsResponse customJobs. */ + public customJobs: google.cloud.aiplatform.v1beta1.ICustomJob[]; - /** ListDataLabelingJobsResponse nextPageToken. */ + /** ListCustomJobsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * Creates a new ListCustomJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataLabelingJobsResponse instance + * @returns ListCustomJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. - * @param message ListDataLabelingJobsResponse message or plain object to encode + * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * @param message ListCustomJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. - * @param message ListDataLabelingJobsResponse message or plain object to encode + * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * @param message ListCustomJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataLabelingJobsResponse + * @returns ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataLabelingJobsResponse + * @returns ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Verifies a ListDataLabelingJobsResponse message. + * Verifies a ListCustomJobsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataLabelingJobsResponse + * @returns ListCustomJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. - * @param message ListDataLabelingJobsResponse + * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. + * @param message ListCustomJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataLabelingJobsResponse to JSON. + * Converts this ListCustomJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDataLabelingJobsResponse + * Gets the default type url for ListCustomJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteDataLabelingJobRequest. */ - interface IDeleteDataLabelingJobRequest { + /** Properties of a DeleteCustomJobRequest. */ + interface IDeleteCustomJobRequest { - /** DeleteDataLabelingJobRequest name */ + /** DeleteCustomJobRequest name */ name?: (string|null); } - /** Represents a DeleteDataLabelingJobRequest. */ - class DeleteDataLabelingJobRequest implements IDeleteDataLabelingJobRequest { + /** Represents a DeleteCustomJobRequest. */ + class DeleteCustomJobRequest implements IDeleteCustomJobRequest { /** - * Constructs a new DeleteDataLabelingJobRequest. + * Constructs a new DeleteCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest); - /** DeleteDataLabelingJobRequest name. */ + /** DeleteCustomJobRequest name. */ public name: string; /** - * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * Creates a new DeleteCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDataLabelingJobRequest instance + * @returns DeleteCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. - * @param message DeleteDataLabelingJobRequest message or plain object to encode + * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * @param message DeleteCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. - * @param message DeleteDataLabelingJobRequest message or plain object to encode + * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * @param message DeleteCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDataLabelingJobRequest + * @returns DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDataLabelingJobRequest + * @returns DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Verifies a DeleteDataLabelingJobRequest message. + * Verifies a DeleteCustomJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDataLabelingJobRequest + * @returns DeleteCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message DeleteDataLabelingJobRequest + * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. + * @param message DeleteCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDataLabelingJobRequest to JSON. + * Converts this DeleteCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteDataLabelingJobRequest + * Gets the default type url for DeleteCustomJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelDataLabelingJobRequest. */ - interface ICancelDataLabelingJobRequest { + /** Properties of a CancelCustomJobRequest. */ + interface ICancelCustomJobRequest { - /** CancelDataLabelingJobRequest name */ + /** CancelCustomJobRequest name */ name?: (string|null); } - /** Represents a CancelDataLabelingJobRequest. */ - class CancelDataLabelingJobRequest implements ICancelDataLabelingJobRequest { + /** Represents a CancelCustomJobRequest. */ + class CancelCustomJobRequest implements ICancelCustomJobRequest { /** - * Constructs a new CancelDataLabelingJobRequest. + * Constructs a new CancelCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest); - /** CancelDataLabelingJobRequest name. */ + /** CancelCustomJobRequest name. */ public name: string; /** - * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * Creates a new CancelCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelDataLabelingJobRequest instance + * @returns CancelCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. - * @param message CancelDataLabelingJobRequest message or plain object to encode + * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. + * @param message CancelCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. - * @param message CancelDataLabelingJobRequest message or plain object to encode + * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. + * @param message CancelCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelDataLabelingJobRequest + * @returns CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelDataLabelingJobRequest + * @returns CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Verifies a CancelDataLabelingJobRequest message. + * Verifies a CancelCustomJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelDataLabelingJobRequest + * @returns CancelCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message CancelDataLabelingJobRequest + * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. + * @param message CancelCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelDataLabelingJobRequest to JSON. + * Converts this CancelCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelDataLabelingJobRequest + * Gets the default type url for CancelCustomJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateHyperparameterTuningJobRequest. */ - interface ICreateHyperparameterTuningJobRequest { + /** Properties of a CreateDataLabelingJobRequest. */ + interface ICreateDataLabelingJobRequest { - /** CreateHyperparameterTuningJobRequest parent */ + /** CreateDataLabelingJobRequest parent */ parent?: (string|null); - /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ - hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + /** CreateDataLabelingJobRequest dataLabelingJob */ + dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); } - /** Represents a CreateHyperparameterTuningJobRequest. */ - class CreateHyperparameterTuningJobRequest implements ICreateHyperparameterTuningJobRequest { + /** Represents a CreateDataLabelingJobRequest. */ + class CreateDataLabelingJobRequest implements ICreateDataLabelingJobRequest { /** - * Constructs a new CreateHyperparameterTuningJobRequest. + * Constructs a new CreateDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest); - /** CreateHyperparameterTuningJobRequest parent. */ + /** CreateDataLabelingJobRequest parent. */ public parent: string; - /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob. */ - public hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + /** CreateDataLabelingJobRequest dataLabelingJob. */ + public dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); /** - * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new CreateDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateHyperparameterTuningJobRequest instance + * @returns CreateDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CreateHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. + * @param message CreateDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CreateHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. + * @param message CreateDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateHyperparameterTuningJobRequest + * @returns CreateDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateHyperparameterTuningJobRequest + * @returns CreateDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Verifies a CreateHyperparameterTuningJobRequest message. + * Verifies a CreateDataLabelingJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateHyperparameterTuningJobRequest + * @returns CreateDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message CreateHyperparameterTuningJobRequest + * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message CreateDataLabelingJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateHyperparameterTuningJobRequest to JSON. + * Converts this CreateDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateHyperparameterTuningJobRequest + * Gets the default type url for CreateDataLabelingJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetHyperparameterTuningJobRequest. */ - interface IGetHyperparameterTuningJobRequest { + /** Properties of a GetDataLabelingJobRequest. */ + interface IGetDataLabelingJobRequest { - /** GetHyperparameterTuningJobRequest name */ + /** GetDataLabelingJobRequest name */ name?: (string|null); } - /** Represents a GetHyperparameterTuningJobRequest. */ - class GetHyperparameterTuningJobRequest implements IGetHyperparameterTuningJobRequest { + /** Represents a GetDataLabelingJobRequest. */ + class GetDataLabelingJobRequest implements IGetDataLabelingJobRequest { /** - * Constructs a new GetHyperparameterTuningJobRequest. + * Constructs a new GetDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest); - /** GetHyperparameterTuningJobRequest name. */ + /** GetDataLabelingJobRequest name. */ public name: string; /** - * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new GetDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetHyperparameterTuningJobRequest instance + * @returns GetDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. - * @param message GetHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * @param message GetDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. - * @param message GetHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * @param message GetDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetHyperparameterTuningJobRequest + * @returns GetDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetHyperparameterTuningJobRequest + * @returns GetDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Verifies a GetHyperparameterTuningJobRequest message. + * Verifies a GetDataLabelingJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetHyperparameterTuningJobRequest + * @returns GetDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message GetHyperparameterTuningJobRequest + * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message GetDataLabelingJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetHyperparameterTuningJobRequest to JSON. + * Converts this GetDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetHyperparameterTuningJobRequest + * Gets the default type url for GetDataLabelingJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListHyperparameterTuningJobsRequest. */ - interface IListHyperparameterTuningJobsRequest { + /** Properties of a ListDataLabelingJobsRequest. */ + interface IListDataLabelingJobsRequest { - /** ListHyperparameterTuningJobsRequest parent */ + /** ListDataLabelingJobsRequest parent */ parent?: (string|null); - /** ListHyperparameterTuningJobsRequest filter */ + /** ListDataLabelingJobsRequest filter */ filter?: (string|null); - /** ListHyperparameterTuningJobsRequest pageSize */ + /** ListDataLabelingJobsRequest pageSize */ pageSize?: (number|null); - /** ListHyperparameterTuningJobsRequest pageToken */ + /** ListDataLabelingJobsRequest pageToken */ pageToken?: (string|null); - /** ListHyperparameterTuningJobsRequest readMask */ + /** ListDataLabelingJobsRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); + + /** ListDataLabelingJobsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a ListHyperparameterTuningJobsRequest. */ - class ListHyperparameterTuningJobsRequest implements IListHyperparameterTuningJobsRequest { + /** Represents a ListDataLabelingJobsRequest. */ + class ListDataLabelingJobsRequest implements IListDataLabelingJobsRequest { /** - * Constructs a new ListHyperparameterTuningJobsRequest. + * Constructs a new ListDataLabelingJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest); - /** ListHyperparameterTuningJobsRequest parent. */ + /** ListDataLabelingJobsRequest parent. */ public parent: string; - /** ListHyperparameterTuningJobsRequest filter. */ + /** ListDataLabelingJobsRequest filter. */ public filter: string; - /** ListHyperparameterTuningJobsRequest pageSize. */ + /** ListDataLabelingJobsRequest pageSize. */ public pageSize: number; - /** ListHyperparameterTuningJobsRequest pageToken. */ + /** ListDataLabelingJobsRequest pageToken. */ public pageToken: string; - /** ListHyperparameterTuningJobsRequest readMask. */ + /** ListDataLabelingJobsRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); + /** ListDataLabelingJobsRequest orderBy. */ + public orderBy: string; + /** - * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * Creates a new ListDataLabelingJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListHyperparameterTuningJobsRequest instance + * @returns ListDataLabelingJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. - * @param message ListHyperparameterTuningJobsRequest message or plain object to encode + * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * @param message ListDataLabelingJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. - * @param message ListHyperparameterTuningJobsRequest message or plain object to encode + * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * @param message ListDataLabelingJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListHyperparameterTuningJobsRequest + * @returns ListDataLabelingJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListHyperparameterTuningJobsRequest + * @returns ListDataLabelingJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Verifies a ListHyperparameterTuningJobsRequest message. + * Verifies a ListDataLabelingJobsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListHyperparameterTuningJobsRequest + * @returns ListDataLabelingJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. - * @param message ListHyperparameterTuningJobsRequest + * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. + * @param message ListDataLabelingJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHyperparameterTuningJobsRequest to JSON. + * Converts this ListDataLabelingJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListHyperparameterTuningJobsRequest + * Gets the default type url for ListDataLabelingJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListHyperparameterTuningJobsResponse. */ - interface IListHyperparameterTuningJobsResponse { + /** Properties of a ListDataLabelingJobsResponse. */ + interface IListDataLabelingJobsResponse { - /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs */ - hyperparameterTuningJobs?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]|null); + /** ListDataLabelingJobsResponse dataLabelingJobs */ + dataLabelingJobs?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob[]|null); - /** ListHyperparameterTuningJobsResponse nextPageToken */ + /** ListDataLabelingJobsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListHyperparameterTuningJobsResponse. */ - class ListHyperparameterTuningJobsResponse implements IListHyperparameterTuningJobsResponse { + /** Represents a ListDataLabelingJobsResponse. */ + class ListDataLabelingJobsResponse implements IListDataLabelingJobsResponse { /** - * Constructs a new ListHyperparameterTuningJobsResponse. + * Constructs a new ListDataLabelingJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse); - /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. */ - public hyperparameterTuningJobs: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]; + /** ListDataLabelingJobsResponse dataLabelingJobs. */ + public dataLabelingJobs: google.cloud.aiplatform.v1beta1.IDataLabelingJob[]; - /** ListHyperparameterTuningJobsResponse nextPageToken. */ + /** ListDataLabelingJobsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * Creates a new ListDataLabelingJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListHyperparameterTuningJobsResponse instance + * @returns ListDataLabelingJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. - * @param message ListHyperparameterTuningJobsResponse message or plain object to encode + * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * @param message ListDataLabelingJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. - * @param message ListHyperparameterTuningJobsResponse message or plain object to encode + /** + * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * @param message ListDataLabelingJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListHyperparameterTuningJobsResponse + * @returns ListDataLabelingJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListHyperparameterTuningJobsResponse + * @returns ListDataLabelingJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Verifies a ListHyperparameterTuningJobsResponse message. + * Verifies a ListDataLabelingJobsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListHyperparameterTuningJobsResponse + * @returns ListDataLabelingJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. - * @param message ListHyperparameterTuningJobsResponse + * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. + * @param message ListDataLabelingJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHyperparameterTuningJobsResponse to JSON. + * Converts this ListDataLabelingJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListHyperparameterTuningJobsResponse + * Gets the default type url for ListDataLabelingJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteHyperparameterTuningJobRequest. */ - interface IDeleteHyperparameterTuningJobRequest { + /** Properties of a DeleteDataLabelingJobRequest. */ + interface IDeleteDataLabelingJobRequest { - /** DeleteHyperparameterTuningJobRequest name */ + /** DeleteDataLabelingJobRequest name */ name?: (string|null); } - /** Represents a DeleteHyperparameterTuningJobRequest. */ - class DeleteHyperparameterTuningJobRequest implements IDeleteHyperparameterTuningJobRequest { + /** Represents a DeleteDataLabelingJobRequest. */ + class DeleteDataLabelingJobRequest implements IDeleteDataLabelingJobRequest { /** - * Constructs a new DeleteHyperparameterTuningJobRequest. + * Constructs a new DeleteDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest); - /** DeleteHyperparameterTuningJobRequest name. */ + /** DeleteDataLabelingJobRequest name. */ public name: string; /** - * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteHyperparameterTuningJobRequest instance + * @returns DeleteDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. - * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @param message DeleteDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. - * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @param message DeleteDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteHyperparameterTuningJobRequest + * @returns DeleteDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteHyperparameterTuningJobRequest + * @returns DeleteDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Verifies a DeleteHyperparameterTuningJobRequest message. + * Verifies a DeleteDataLabelingJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteHyperparameterTuningJobRequest + * @returns DeleteDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message DeleteHyperparameterTuningJobRequest + * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message DeleteDataLabelingJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteHyperparameterTuningJobRequest to JSON. + * Converts this DeleteDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteHyperparameterTuningJobRequest + * Gets the default type url for DeleteDataLabelingJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelHyperparameterTuningJobRequest. */ - interface ICancelHyperparameterTuningJobRequest { + /** Properties of a CancelDataLabelingJobRequest. */ + interface ICancelDataLabelingJobRequest { - /** CancelHyperparameterTuningJobRequest name */ + /** CancelDataLabelingJobRequest name */ name?: (string|null); } - /** Represents a CancelHyperparameterTuningJobRequest. */ - class CancelHyperparameterTuningJobRequest implements ICancelHyperparameterTuningJobRequest { + /** Represents a CancelDataLabelingJobRequest. */ + class CancelDataLabelingJobRequest implements ICancelDataLabelingJobRequest { /** - * Constructs a new CancelHyperparameterTuningJobRequest. + * Constructs a new CancelDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest); - /** CancelHyperparameterTuningJobRequest name. */ + /** CancelDataLabelingJobRequest name. */ public name: string; /** - * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new CancelDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelHyperparameterTuningJobRequest instance + * @returns CancelDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CancelHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * @param message CancelDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CancelHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * @param message CancelDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelHyperparameterTuningJobRequest + * @returns CancelDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelHyperparameterTuningJobRequest + * @returns CancelDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Verifies a CancelHyperparameterTuningJobRequest message. + * Verifies a CancelDataLabelingJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelHyperparameterTuningJobRequest + * @returns CancelDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message CancelHyperparameterTuningJobRequest + * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message CancelDataLabelingJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelHyperparameterTuningJobRequest to JSON. + * Converts this CancelDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelHyperparameterTuningJobRequest + * Gets the default type url for CancelDataLabelingJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateBatchPredictionJobRequest. */ - interface ICreateBatchPredictionJobRequest { + /** Properties of a CreateHyperparameterTuningJobRequest. */ + interface ICreateHyperparameterTuningJobRequest { - /** CreateBatchPredictionJobRequest parent */ + /** CreateHyperparameterTuningJobRequest parent */ parent?: (string|null); - /** CreateBatchPredictionJobRequest batchPredictionJob */ - batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); + /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ + hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); } - /** Represents a CreateBatchPredictionJobRequest. */ - class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { + /** Represents a CreateHyperparameterTuningJobRequest. */ + class CreateHyperparameterTuningJobRequest implements ICreateHyperparameterTuningJobRequest { /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new CreateHyperparameterTuningJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest); - /** CreateBatchPredictionJobRequest parent. */ + /** CreateHyperparameterTuningJobRequest parent. */ public parent: string; - /** CreateBatchPredictionJobRequest batchPredictionJob. */ - public batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); + /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob. */ + public hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateBatchPredictionJobRequest instance + * @returns CreateHyperparameterTuningJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @param message CreateBatchPredictionJobRequest message or plain object to encode + * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CreateHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @param message CreateBatchPredictionJobRequest message or plain object to encode + * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CreateHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateBatchPredictionJobRequest + * @returns CreateHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateBatchPredictionJobRequest + * @returns CreateHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Verifies a CreateBatchPredictionJobRequest message. + * Verifies a CreateHyperparameterTuningJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateBatchPredictionJobRequest + * @returns CreateHyperparameterTuningJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message CreateBatchPredictionJobRequest + * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message CreateHyperparameterTuningJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this CreateHyperparameterTuningJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateBatchPredictionJobRequest + * Gets the default type url for CreateHyperparameterTuningJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetBatchPredictionJobRequest. */ - interface IGetBatchPredictionJobRequest { + /** Properties of a GetHyperparameterTuningJobRequest. */ + interface IGetHyperparameterTuningJobRequest { - /** GetBatchPredictionJobRequest name */ + /** GetHyperparameterTuningJobRequest name */ name?: (string|null); } - /** Represents a GetBatchPredictionJobRequest. */ - class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { + /** Represents a GetHyperparameterTuningJobRequest. */ + class GetHyperparameterTuningJobRequest implements IGetHyperparameterTuningJobRequest { /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new GetHyperparameterTuningJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest); - /** GetBatchPredictionJobRequest name. */ + /** GetHyperparameterTuningJobRequest name. */ public name: string; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetBatchPredictionJobRequest instance + * @returns GetHyperparameterTuningJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. - * @param message GetBatchPredictionJobRequest message or plain object to encode + * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @param message GetHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. - * @param message GetBatchPredictionJobRequest message or plain object to encode + * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @param message GetHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetBatchPredictionJobRequest + * @returns GetHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetBatchPredictionJobRequest + * @returns GetHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies a GetHyperparameterTuningJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetBatchPredictionJobRequest + * @returns GetHyperparameterTuningJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message GetBatchPredictionJobRequest + * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message GetHyperparameterTuningJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this GetHyperparameterTuningJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetBatchPredictionJobRequest + * Gets the default type url for GetHyperparameterTuningJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListBatchPredictionJobsRequest. */ - interface IListBatchPredictionJobsRequest { + /** Properties of a ListHyperparameterTuningJobsRequest. */ + interface IListHyperparameterTuningJobsRequest { - /** ListBatchPredictionJobsRequest parent */ + /** ListHyperparameterTuningJobsRequest parent */ parent?: (string|null); - /** ListBatchPredictionJobsRequest filter */ + /** ListHyperparameterTuningJobsRequest filter */ filter?: (string|null); - /** ListBatchPredictionJobsRequest pageSize */ + /** ListHyperparameterTuningJobsRequest pageSize */ pageSize?: (number|null); - /** ListBatchPredictionJobsRequest pageToken */ + /** ListHyperparameterTuningJobsRequest pageToken */ pageToken?: (string|null); - /** ListBatchPredictionJobsRequest readMask */ + /** ListHyperparameterTuningJobsRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListBatchPredictionJobsRequest. */ - class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { + /** Represents a ListHyperparameterTuningJobsRequest. */ + class ListHyperparameterTuningJobsRequest implements IListHyperparameterTuningJobsRequest { /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new ListHyperparameterTuningJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest); - /** ListBatchPredictionJobsRequest parent. */ + /** ListHyperparameterTuningJobsRequest parent. */ public parent: string; - /** ListBatchPredictionJobsRequest filter. */ + /** ListHyperparameterTuningJobsRequest filter. */ public filter: string; - /** ListBatchPredictionJobsRequest pageSize. */ + /** ListHyperparameterTuningJobsRequest pageSize. */ public pageSize: number; - /** ListBatchPredictionJobsRequest pageToken. */ + /** ListHyperparameterTuningJobsRequest pageToken. */ public pageToken: string; - /** ListBatchPredictionJobsRequest readMask. */ + /** ListHyperparameterTuningJobsRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsRequest instance + * @returns ListHyperparameterTuningJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. - * @param message ListBatchPredictionJobsRequest message or plain object to encode + * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @param message ListHyperparameterTuningJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. - * @param message ListBatchPredictionJobsRequest message or plain object to encode + * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @param message ListHyperparameterTuningJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListBatchPredictionJobsRequest + * @returns ListHyperparameterTuningJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListBatchPredictionJobsRequest + * @returns ListHyperparameterTuningJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a ListHyperparameterTuningJobsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListBatchPredictionJobsRequest + * @returns ListHyperparameterTuningJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. - * @param message ListBatchPredictionJobsRequest + * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. + * @param message ListHyperparameterTuningJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this ListHyperparameterTuningJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListBatchPredictionJobsRequest + * Gets the default type url for ListHyperparameterTuningJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListBatchPredictionJobsResponse. */ - interface IListBatchPredictionJobsResponse { + /** Properties of a ListHyperparameterTuningJobsResponse. */ + interface IListHyperparameterTuningJobsResponse { - /** ListBatchPredictionJobsResponse batchPredictionJobs */ - batchPredictionJobs?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]|null); + /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs */ + hyperparameterTuningJobs?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]|null); - /** ListBatchPredictionJobsResponse nextPageToken */ + /** ListHyperparameterTuningJobsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListBatchPredictionJobsResponse. */ - class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { + /** Represents a ListHyperparameterTuningJobsResponse. */ + class ListHyperparameterTuningJobsResponse implements IListHyperparameterTuningJobsResponse { /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new ListHyperparameterTuningJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse); - /** ListBatchPredictionJobsResponse batchPredictionJobs. */ - public batchPredictionJobs: google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]; + /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. */ + public hyperparameterTuningJobs: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]; - /** ListBatchPredictionJobsResponse nextPageToken. */ + /** ListHyperparameterTuningJobsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsResponse instance + * @returns ListHyperparameterTuningJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. - * @param message ListBatchPredictionJobsResponse message or plain object to encode + * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * @param message ListHyperparameterTuningJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. - * @param message ListBatchPredictionJobsResponse message or plain object to encode + * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * @param message ListHyperparameterTuningJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListBatchPredictionJobsResponse + * @returns ListHyperparameterTuningJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListBatchPredictionJobsResponse + * @returns ListHyperparameterTuningJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a ListHyperparameterTuningJobsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListBatchPredictionJobsResponse + * @returns ListHyperparameterTuningJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. - * @param message ListBatchPredictionJobsResponse + * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. + * @param message ListHyperparameterTuningJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this ListHyperparameterTuningJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListBatchPredictionJobsResponse + * Gets the default type url for ListHyperparameterTuningJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteBatchPredictionJobRequest. */ - interface IDeleteBatchPredictionJobRequest { + /** Properties of a DeleteHyperparameterTuningJobRequest. */ + interface IDeleteHyperparameterTuningJobRequest { - /** DeleteBatchPredictionJobRequest name */ + /** DeleteHyperparameterTuningJobRequest name */ name?: (string|null); } - /** Represents a DeleteBatchPredictionJobRequest. */ - class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { + /** Represents a DeleteHyperparameterTuningJobRequest. */ + class DeleteHyperparameterTuningJobRequest implements IDeleteHyperparameterTuningJobRequest { /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new DeleteHyperparameterTuningJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest); - /** DeleteBatchPredictionJobRequest name. */ + /** DeleteHyperparameterTuningJobRequest name. */ public name: string; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteBatchPredictionJobRequest instance + * @returns DeleteHyperparameterTuningJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. - * @param message DeleteBatchPredictionJobRequest message or plain object to encode + * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. - * @param message DeleteBatchPredictionJobRequest message or plain object to encode + * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteBatchPredictionJobRequest + * @returns DeleteHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteBatchPredictionJobRequest + * @returns DeleteHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies a DeleteHyperparameterTuningJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteBatchPredictionJobRequest + * @returns DeleteHyperparameterTuningJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message DeleteBatchPredictionJobRequest + * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message DeleteHyperparameterTuningJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this DeleteHyperparameterTuningJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteBatchPredictionJobRequest + * Gets the default type url for DeleteHyperparameterTuningJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelBatchPredictionJobRequest. */ - interface ICancelBatchPredictionJobRequest { + /** Properties of a CancelHyperparameterTuningJobRequest. */ + interface ICancelHyperparameterTuningJobRequest { - /** CancelBatchPredictionJobRequest name */ + /** CancelHyperparameterTuningJobRequest name */ name?: (string|null); } - /** Represents a CancelBatchPredictionJobRequest. */ - class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { + /** Represents a CancelHyperparameterTuningJobRequest. */ + class CancelHyperparameterTuningJobRequest implements ICancelHyperparameterTuningJobRequest { /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new CancelHyperparameterTuningJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest); - /** CancelBatchPredictionJobRequest name. */ + /** CancelHyperparameterTuningJobRequest name. */ public name: string; /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelBatchPredictionJobRequest instance + * @returns CancelHyperparameterTuningJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @param message CancelBatchPredictionJobRequest message or plain object to encode + * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CancelHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @param message CancelBatchPredictionJobRequest message or plain object to encode + * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CancelHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelBatchPredictionJobRequest + * @returns CancelHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelBatchPredictionJobRequest + * @returns CancelHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies a CancelHyperparameterTuningJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelBatchPredictionJobRequest + * @returns CancelHyperparameterTuningJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message CancelBatchPredictionJobRequest + * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message CancelHyperparameterTuningJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this CancelHyperparameterTuningJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelBatchPredictionJobRequest + * Gets the default type url for CancelHyperparameterTuningJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ - interface ICreateModelDeploymentMonitoringJobRequest { + /** Properties of a CreateBatchPredictionJobRequest. */ + interface ICreateBatchPredictionJobRequest { - /** CreateModelDeploymentMonitoringJobRequest parent */ + /** CreateBatchPredictionJobRequest parent */ parent?: (string|null); - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** CreateBatchPredictionJobRequest batchPredictionJob */ + batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); } - /** Represents a CreateModelDeploymentMonitoringJobRequest. */ - class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { + /** Represents a CreateBatchPredictionJobRequest. */ + class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new CreateBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest); - /** CreateModelDeploymentMonitoringJobRequest parent. */ + /** CreateBatchPredictionJobRequest parent. */ public parent: string; - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** CreateBatchPredictionJobRequest batchPredictionJob. */ + public batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateModelDeploymentMonitoringJobRequest instance + * @returns CreateBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @param message CreateBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @param message CreateBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * Verifies a CreateBatchPredictionJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns CreateBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message CreateModelDeploymentMonitoringJobRequest + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message CreateBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateModelDeploymentMonitoringJobRequest + * Gets the default type url for CreateBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ - deployedModelId?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ - featureDisplayName?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ - objectives?: (google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ - pageSize?: (number|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ - pageToken?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** Properties of a GetBatchPredictionJobRequest. */ + interface IGetBatchPredictionJobRequest { - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** GetBatchPredictionJobRequest name */ + name?: (string|null); } - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { + /** Represents a GetBatchPredictionJobRequest. */ + class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Constructs a new GetBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ - public deployedModelId: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ - public featureDisplayName: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ - public objectives: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ - public pageSize: number; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ - public pageToken: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** GetBatchPredictionJobRequest name. */ + public name: string; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @returns GetBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * @param message GetBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * @param message GetBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a GetBatchPredictionJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns GetBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message GetBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Gets the default type url for GetBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { - - /** Properties of a StatsAnomaliesObjective. */ - interface IStatsAnomaliesObjective { - - /** StatsAnomaliesObjective type */ - type?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); - - /** StatsAnomaliesObjective topFeatureCount */ - topFeatureCount?: (number|null); - } - - /** Represents a StatsAnomaliesObjective. */ - class StatsAnomaliesObjective implements IStatsAnomaliesObjective { - - /** - * Constructs a new StatsAnomaliesObjective. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); - - /** StatsAnomaliesObjective type. */ - public type: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); - - /** StatsAnomaliesObjective topFeatureCount. */ - public topFeatureCount: number; - - /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. - * @param [properties] Properties to set - * @returns StatsAnomaliesObjective instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @param message StatsAnomaliesObjective message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @param message StatsAnomaliesObjective message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Verifies a StatsAnomaliesObjective message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StatsAnomaliesObjective - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @param message StatsAnomaliesObjective - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a ListBatchPredictionJobsRequest. */ + interface IListBatchPredictionJobsRequest { - /** - * Converts this StatsAnomaliesObjective to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListBatchPredictionJobsRequest parent */ + parent?: (string|null); - /** - * Gets the default type url for StatsAnomaliesObjective - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** ListBatchPredictionJobsRequest filter */ + filter?: (string|null); - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + /** ListBatchPredictionJobsRequest pageSize */ + pageSize?: (number|null); - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ - monitoringStats?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + /** ListBatchPredictionJobsRequest pageToken */ + pageToken?: (string|null); - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListBatchPredictionJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + /** Represents a ListBatchPredictionJobsRequest. */ + class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new ListBatchPredictionJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest); - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ - public monitoringStats: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + /** ListBatchPredictionJobsRequest parent. */ + public parent: string; - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ - public nextPageToken: string; + /** ListBatchPredictionJobsRequest filter. */ + public filter: string; + + /** ListBatchPredictionJobsRequest pageSize. */ + public pageSize: number; + + /** ListBatchPredictionJobsRequest pageToken. */ + public pageToken: string; + + /** ListBatchPredictionJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @returns ListBatchPredictionJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * @param message ListBatchPredictionJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * @param message ListBatchPredictionJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies a ListBatchPredictionJobsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ListBatchPredictionJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * @param message ListBatchPredictionJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Gets the default type url for ListBatchPredictionJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetModelDeploymentMonitoringJobRequest. */ - interface IGetModelDeploymentMonitoringJobRequest { + /** Properties of a ListBatchPredictionJobsResponse. */ + interface IListBatchPredictionJobsResponse { - /** GetModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** ListBatchPredictionJobsResponse batchPredictionJobs */ + batchPredictionJobs?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]|null); + + /** ListBatchPredictionJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetModelDeploymentMonitoringJobRequest. */ - class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { + /** Represents a ListBatchPredictionJobsResponse. */ + class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * Constructs a new ListBatchPredictionJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse); - /** GetModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** ListBatchPredictionJobsResponse batchPredictionJobs. */ + public batchPredictionJobs: google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]; + + /** ListBatchPredictionJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelDeploymentMonitoringJobRequest instance + * @returns ListBatchPredictionJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * @param message ListBatchPredictionJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * @param message ListBatchPredictionJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelDeploymentMonitoringJobRequest + * @returns ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelDeploymentMonitoringJobRequest + * @returns ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies a ListBatchPredictionJobsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelDeploymentMonitoringJobRequest + * @returns ListBatchPredictionJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message GetModelDeploymentMonitoringJobRequest + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * @param message ListBatchPredictionJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * Gets the default type url for ListBatchPredictionJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ - interface IListModelDeploymentMonitoringJobsRequest { - - /** ListModelDeploymentMonitoringJobsRequest parent */ - parent?: (string|null); - - /** ListModelDeploymentMonitoringJobsRequest filter */ - filter?: (string|null); - - /** ListModelDeploymentMonitoringJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListModelDeploymentMonitoringJobsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a DeleteBatchPredictionJobRequest. */ + interface IDeleteBatchPredictionJobRequest { - /** ListModelDeploymentMonitoringJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** DeleteBatchPredictionJobRequest name */ + name?: (string|null); } - /** Represents a ListModelDeploymentMonitoringJobsRequest. */ - class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { + /** Represents a DeleteBatchPredictionJobRequest. */ + class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest); - - /** ListModelDeploymentMonitoringJobsRequest parent. */ - public parent: string; - - /** ListModelDeploymentMonitoringJobsRequest filter. */ - public filter: string; - - /** ListModelDeploymentMonitoringJobsRequest pageSize. */ - public pageSize: number; - - /** ListModelDeploymentMonitoringJobsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest); - /** ListModelDeploymentMonitoringJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** DeleteBatchPredictionJobRequest name. */ + public name: string; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsRequest instance + * @returns DeleteBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * @param message DeleteBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * @param message DeleteBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a DeleteBatchPredictionJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns DeleteBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsRequest + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message DeleteBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsRequest + * Gets the default type url for DeleteBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ - interface IListModelDeploymentMonitoringJobsResponse { - - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ - modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]|null); + /** Properties of a CancelBatchPredictionJobRequest. */ + interface ICancelBatchPredictionJobRequest { - /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CancelBatchPredictionJobRequest name */ + name?: (string|null); } - /** Represents a ListModelDeploymentMonitoringJobsResponse. */ - class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { + /** Represents a CancelBatchPredictionJobRequest. */ + class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new CancelBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse); - - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ - public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest); - /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ - public nextPageToken: string; + /** CancelBatchPredictionJobRequest name. */ + public name: string; /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsResponse instance + * @returns CancelBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @param message CancelBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @param message CancelBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a CancelBatchPredictionJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns CancelBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsResponse + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message CancelBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this CancelBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for CancelBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ - interface IUpdateModelDeploymentMonitoringJobRequest { + /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ + interface ICreateModelDeploymentMonitoringJobRequest { - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** CreateModelDeploymentMonitoringJobRequest parent */ + parent?: (string|null); - /** UpdateModelDeploymentMonitoringJobRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); } - /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ - class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { + /** Represents a CreateModelDeploymentMonitoringJobRequest. */ + class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new CreateModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest); - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** CreateModelDeploymentMonitoringJobRequest parent. */ + public parent: string; - /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobRequest instance + * @returns CreateModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a CreateModelDeploymentMonitoringJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobRequest + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message CreateModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest + * Gets the default type url for CreateModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ - interface IDeleteModelDeploymentMonitoringJobRequest { + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** DeleteModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ + deployedModelId?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ + featureDisplayName?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ + objectives?: (google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ + pageSize?: (number|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ + pageToken?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ - class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - /** DeleteModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ + public deployedModelId: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ + public featureDisplayName: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ + public objectives: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ + public pageSize: number; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ + public pageToken: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteModelDeploymentMonitoringJobRequest instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message DeleteModelDeploymentMonitoringJobRequest + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ - interface IPauseModelDeploymentMonitoringJobRequest { + namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** PauseModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** Properties of a StatsAnomaliesObjective. */ + interface IStatsAnomaliesObjective { + + /** StatsAnomaliesObjective type */ + type?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); + + /** StatsAnomaliesObjective topFeatureCount */ + topFeatureCount?: (number|null); + } + + /** Represents a StatsAnomaliesObjective. */ + class StatsAnomaliesObjective implements IStatsAnomaliesObjective { + + /** + * Constructs a new StatsAnomaliesObjective. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); + + /** StatsAnomaliesObjective type. */ + public type: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); + + /** StatsAnomaliesObjective topFeatureCount. */ + public topFeatureCount: number; + + /** + * Creates a new StatsAnomaliesObjective instance using the specified properties. + * @param [properties] Properties to set + * @returns StatsAnomaliesObjective instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @param message StatsAnomaliesObjective message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @param message StatsAnomaliesObjective message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Verifies a StatsAnomaliesObjective message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StatsAnomaliesObjective + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * @param message StatsAnomaliesObjective + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StatsAnomaliesObjective to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StatsAnomaliesObjective + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a PauseModelDeploymentMonitoringJobRequest. */ - class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ + monitoringStats?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); - /** PauseModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ + public monitoringStats: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PauseModelDeploymentMonitoringJobRequest instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message PauseModelDeploymentMonitoringJobRequest + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PauseModelDeploymentMonitoringJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ - interface IResumeModelDeploymentMonitoringJobRequest { + /** Properties of a GetModelDeploymentMonitoringJobRequest. */ + interface IGetModelDeploymentMonitoringJobRequest { - /** ResumeModelDeploymentMonitoringJobRequest name */ + /** GetModelDeploymentMonitoringJobRequest name */ name?: (string|null); } - /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ - class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { + /** Represents a GetModelDeploymentMonitoringJobRequest. */ + class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest); - /** ResumeModelDeploymentMonitoringJobRequest name. */ + /** GetModelDeploymentMonitoringJobRequest name. */ public name: string; /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ResumeModelDeploymentMonitoringJobRequest instance + * @returns GetModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResumeModelDeploymentMonitoringJobRequest + * @returns GetModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResumeModelDeploymentMonitoringJobRequest + * @returns GetModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. + * Verifies a GetModelDeploymentMonitoringJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResumeModelDeploymentMonitoringJobRequest + * @returns GetModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message ResumeModelDeploymentMonitoringJobRequest + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message GetModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest + * Gets the default type url for GetModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - interface IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ + interface IListModelDeploymentMonitoringJobsRequest { - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListModelDeploymentMonitoringJobsRequest parent */ + parent?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest filter */ + filter?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListModelDeploymentMonitoringJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** Represents a ListModelDeploymentMonitoringJobsRequest. */ + class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * Constructs a new ListModelDeploymentMonitoringJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest); - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListModelDeploymentMonitoringJobsRequest parent. */ + public parent: string; + + /** ListModelDeploymentMonitoringJobsRequest filter. */ + public filter: string; + + /** ListModelDeploymentMonitoringJobsRequest pageSize. */ + public pageSize: number; + + /** ListModelDeploymentMonitoringJobsRequest pageToken. */ + public pageToken: string; + + /** ListModelDeploymentMonitoringJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance + * @returns ListModelDeploymentMonitoringJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * Verifies a ListModelDeploymentMonitoringJobsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns ListModelDeploymentMonitoringJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * Gets the default type url for ListModelDeploymentMonitoringJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** ModelDeploymentMonitoringObjectiveType enum. */ - enum ModelDeploymentMonitoringObjectiveType { - MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, - RAW_FEATURE_SKEW = 1, - RAW_FEATURE_DRIFT = 2, - FEATURE_ATTRIBUTION_SKEW = 3, - FEATURE_ATTRIBUTION_DRIFT = 4 - } - - /** Properties of a ModelDeploymentMonitoringJob. */ - interface IModelDeploymentMonitoringJob { - - /** ModelDeploymentMonitoringJob name */ - name?: (string|null); - - /** ModelDeploymentMonitoringJob displayName */ - displayName?: (string|null); - - /** ModelDeploymentMonitoringJob endpoint */ - endpoint?: (string|null); - - /** ModelDeploymentMonitoringJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** ModelDeploymentMonitoringJob scheduleState */ - scheduleState?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); - - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ - latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ - modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ - modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - - /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ - modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ - predictInstanceSchemaUri?: (string|null); - - /** ModelDeploymentMonitoringJob samplePredictInstance */ - samplePredictInstance?: (google.protobuf.IValue|null); - - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ - analysisInstanceSchemaUri?: (string|null); - - /** ModelDeploymentMonitoringJob bigqueryTables */ - bigqueryTables?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]|null); - - /** ModelDeploymentMonitoringJob logTtl */ - logTtl?: (google.protobuf.IDuration|null); - - /** ModelDeploymentMonitoringJob labels */ - labels?: ({ [k: string]: string }|null); - - /** ModelDeploymentMonitoringJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob nextScheduleTime */ - nextScheduleTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ - statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** ModelDeploymentMonitoringJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ + interface IListModelDeploymentMonitoringJobsResponse { - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ - enableMonitoringPipelineLogs?: (boolean|null); + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ + modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]|null); - /** ModelDeploymentMonitoringJob error */ - error?: (google.rpc.IStatus|null); + /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ModelDeploymentMonitoringJob. */ - class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { + /** Represents a ListModelDeploymentMonitoringJobsResponse. */ + class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { /** - * Constructs a new ModelDeploymentMonitoringJob. + * Constructs a new ListModelDeploymentMonitoringJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob); - - /** ModelDeploymentMonitoringJob name. */ - public name: string; - - /** ModelDeploymentMonitoringJob displayName. */ - public displayName: string; - - /** ModelDeploymentMonitoringJob endpoint. */ - public endpoint: string; - - /** ModelDeploymentMonitoringJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** ModelDeploymentMonitoringJob scheduleState. */ - public scheduleState: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState); - - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ - public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ - public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]; - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ - public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - - /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ - public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ - public predictInstanceSchemaUri: string; - - /** ModelDeploymentMonitoringJob samplePredictInstance. */ - public samplePredictInstance?: (google.protobuf.IValue|null); - - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ - public analysisInstanceSchemaUri: string; - - /** ModelDeploymentMonitoringJob bigqueryTables. */ - public bigqueryTables: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]; - - /** ModelDeploymentMonitoringJob logTtl. */ - public logTtl?: (google.protobuf.IDuration|null); - - /** ModelDeploymentMonitoringJob labels. */ - public labels: { [k: string]: string }; - - /** ModelDeploymentMonitoringJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob nextScheduleTime. */ - public nextScheduleTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ - public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** ModelDeploymentMonitoringJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse); - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ - public enableMonitoringPipelineLogs: boolean; + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ + public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]; - /** ModelDeploymentMonitoringJob error. */ - public error?: (google.rpc.IStatus|null); + /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringJob instance + * @returns ListModelDeploymentMonitoringJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringJob + * @returns ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringJob + * @returns ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Verifies a ModelDeploymentMonitoringJob message. + * Verifies a ListModelDeploymentMonitoringJobsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringJob + * @returns ListModelDeploymentMonitoringJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringJob + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringJob + * Gets the default type url for ListModelDeploymentMonitoringJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelDeploymentMonitoringJob { - - /** Properties of a LatestMonitoringPipelineMetadata. */ - interface ILatestMonitoringPipelineMetadata { - - /** LatestMonitoringPipelineMetadata runTime */ - runTime?: (google.protobuf.ITimestamp|null); - - /** LatestMonitoringPipelineMetadata status */ - status?: (google.rpc.IStatus|null); - } - - /** Represents a LatestMonitoringPipelineMetadata. */ - class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { - - /** - * Constructs a new LatestMonitoringPipelineMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); - - /** LatestMonitoringPipelineMetadata runTime. */ - public runTime?: (google.protobuf.ITimestamp|null); - - /** LatestMonitoringPipelineMetadata status. */ - public status?: (google.rpc.IStatus|null); - - /** - * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns LatestMonitoringPipelineMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; - - /** - * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LatestMonitoringPipelineMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; - - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LatestMonitoringPipelineMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; - - /** - * Verifies a LatestMonitoringPipelineMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LatestMonitoringPipelineMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; - - /** - * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. - * @param message LatestMonitoringPipelineMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LatestMonitoringPipelineMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LatestMonitoringPipelineMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** MonitoringScheduleState enum. */ - enum MonitoringScheduleState { - MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, - PENDING = 1, - OFFLINE = 2, - RUNNING = 3 - } - } - - /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ - interface IModelDeploymentMonitoringBigQueryTable { - - /** ModelDeploymentMonitoringBigQueryTable logSource */ - logSource?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); - - /** ModelDeploymentMonitoringBigQueryTable logType */ - logType?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null); + /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ + interface IUpdateModelDeploymentMonitoringJobRequest { - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ - bigqueryTablePath?: (string|null); + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + + /** UpdateModelDeploymentMonitoringJobRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ModelDeploymentMonitoringBigQueryTable. */ - class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { + /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ + class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable); - - /** ModelDeploymentMonitoringBigQueryTable logSource. */ - public logSource: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest); - /** ModelDeploymentMonitoringBigQueryTable logType. */ - public logType: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType); + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ - public bigqueryTablePath: string; + /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringBigQueryTable instance + * @returns UpdateModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * Verifies an UpdateModelDeploymentMonitoringJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns UpdateModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringBigQueryTable + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelDeploymentMonitoringBigQueryTable { - - /** LogSource enum. */ - enum LogSource { - LOG_SOURCE_UNSPECIFIED = 0, - TRAINING = 1, - SERVING = 2 - } - - /** LogType enum. */ - enum LogType { - LOG_TYPE_UNSPECIFIED = 0, - PREDICT = 1, - EXPLAIN = 2 - } - } - - /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ - interface IModelDeploymentMonitoringObjectiveConfig { - - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ - deployedModelId?: (string|null); + /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ + interface IDeleteModelDeploymentMonitoringJobRequest { - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ - objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); + /** DeleteModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ - class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { + /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ + class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig); - - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ - public deployedModelId: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest); - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ - public objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); + /** DeleteModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringObjectiveConfig instance + * @returns DeleteModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns DeleteModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringObjectiveConfig + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message DeleteModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ - interface IModelDeploymentMonitoringScheduleConfig { - - /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ - monitorInterval?: (google.protobuf.IDuration|null); + /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ + interface IPauseModelDeploymentMonitoringJobRequest { - /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ - monitorWindow?: (google.protobuf.IDuration|null); + /** PauseModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ModelDeploymentMonitoringScheduleConfig. */ - class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { + /** Represents a PauseModelDeploymentMonitoringJobRequest. */ + class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig); - - /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ - public monitorInterval?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest); - /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ - public monitorWindow?: (google.protobuf.IDuration|null); + /** PauseModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringScheduleConfig instance + * @returns PauseModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * Verifies a PauseModelDeploymentMonitoringJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns PauseModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringScheduleConfig + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message PauseModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * Gets the default type url for PauseModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringStatsAnomalies. */ - interface IModelMonitoringStatsAnomalies { - - /** ModelMonitoringStatsAnomalies objective */ - objective?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); - - /** ModelMonitoringStatsAnomalies deployedModelId */ - deployedModelId?: (string|null); - - /** ModelMonitoringStatsAnomalies anomalyCount */ - anomalyCount?: (number|null); + /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ + interface IResumeModelDeploymentMonitoringJobRequest { - /** ModelMonitoringStatsAnomalies featureStats */ - featureStats?: (google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); + /** ResumeModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ModelMonitoringStatsAnomalies. */ - class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { + /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ + class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { /** - * Constructs a new ModelMonitoringStatsAnomalies. + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies); - - /** ModelMonitoringStatsAnomalies objective. */ - public objective: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); - - /** ModelMonitoringStatsAnomalies deployedModelId. */ - public deployedModelId: string; - - /** ModelMonitoringStatsAnomalies anomalyCount. */ - public anomalyCount: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest); - /** ModelMonitoringStatsAnomalies featureStats. */ - public featureStats: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; + /** ResumeModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringStatsAnomalies instance + * @returns ResumeModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static create(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringStatsAnomalies + * @returns ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringStatsAnomalies + * @returns ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * Verifies a ResumeModelDeploymentMonitoringJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringStatsAnomalies + * @returns ResumeModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. - * @param message ModelMonitoringStatsAnomalies + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message ResumeModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringStatsAnomalies to JSON. + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringStatsAnomalies + * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringStatsAnomalies { - - /** Properties of a FeatureHistoricStatsAnomalies. */ - interface IFeatureHistoricStatsAnomalies { - - /** FeatureHistoricStatsAnomalies featureDisplayName */ - featureDisplayName?: (string|null); - - /** FeatureHistoricStatsAnomalies threshold */ - threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - - /** FeatureHistoricStatsAnomalies trainingStats */ - trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - - /** FeatureHistoricStatsAnomalies predictionStats */ - predictionStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); - } - - /** Represents a FeatureHistoricStatsAnomalies. */ - class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { - - /** - * Constructs a new FeatureHistoricStatsAnomalies. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); + /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + interface IUpdateModelDeploymentMonitoringJobOperationMetadata { - /** FeatureHistoricStatsAnomalies featureDisplayName. */ - public featureDisplayName: string; + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** FeatureHistoricStatsAnomalies threshold. */ - public threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { - /** FeatureHistoricStatsAnomalies trainingStats. */ - public trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); + /** + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata); - /** FeatureHistoricStatsAnomalies predictionStats. */ - public predictionStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureHistoricStatsAnomalies instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + /** + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; - /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + /** + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + /** + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; - /** - * Verifies a FeatureHistoricStatsAnomalies message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureHistoricStatsAnomalies - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + /** + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; - /** - * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @param message FeatureHistoricStatsAnomalies - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this FeatureHistoricStatsAnomalies to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for FeatureHistoricStatsAnomalies - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a LineageSubgraph. */ diff --git a/protos/protos.js b/protos/protos.js index 9489bd49..73d7e277 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -61731,6 +61731,8 @@ * @property {Object.|null} [labels] Index labels * @property {google.protobuf.ITimestamp|null} [createTime] Index createTime * @property {google.protobuf.ITimestamp|null} [updateTime] Index updateTime + * @property {google.cloud.aiplatform.v1.IIndexStats|null} [indexStats] Index indexStats + * @property {google.cloud.aiplatform.v1.Index.IndexUpdateMethod|null} [indexUpdateMethod] Index indexUpdateMethod */ /** @@ -61830,6 +61832,22 @@ */ Index.prototype.updateTime = null; + /** + * Index indexStats. + * @member {google.cloud.aiplatform.v1.IIndexStats|null|undefined} indexStats + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.indexStats = null; + + /** + * Index indexUpdateMethod. + * @member {google.cloud.aiplatform.v1.Index.IndexUpdateMethod} indexUpdateMethod + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.indexUpdateMethod = 0; + /** * Creates a new Index instance using the specified properties. * @function create @@ -61876,6 +61894,10 @@ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.indexStats != null && Object.hasOwnProperty.call(message, "indexStats")) + $root.google.cloud.aiplatform.v1.IndexStats.encode(message.indexStats, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.indexUpdateMethod != null && Object.hasOwnProperty.call(message, "indexUpdateMethod")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.indexUpdateMethod); return writer; }; @@ -61971,6 +61993,14 @@ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } + case 14: { + message.indexStats = $root.google.cloud.aiplatform.v1.IndexStats.decode(reader, reader.uint32()); + break; + } + case 16: { + message.indexUpdateMethod = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -62053,6 +62083,20 @@ if (error) return "updateTime." + error; } + if (message.indexStats != null && message.hasOwnProperty("indexStats")) { + var error = $root.google.cloud.aiplatform.v1.IndexStats.verify(message.indexStats); + if (error) + return "indexStats." + error; + } + if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) + switch (message.indexUpdateMethod) { + default: + return "indexUpdateMethod: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -62110,6 +62154,25 @@ throw TypeError(".google.cloud.aiplatform.v1.Index.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } + if (object.indexStats != null) { + if (typeof object.indexStats !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Index.indexStats: object expected"); + message.indexStats = $root.google.cloud.aiplatform.v1.IndexStats.fromObject(object.indexStats); + } + switch (object.indexUpdateMethod) { + case "INDEX_UPDATE_METHOD_UNSPECIFIED": + case 0: + message.indexUpdateMethod = 0; + break; + case "BATCH_UPDATE": + case 1: + message.indexUpdateMethod = 1; + break; + case "STREAM_UPDATE": + case 2: + message.indexUpdateMethod = 2; + break; + } return message; }; @@ -62139,6 +62202,8 @@ object.etag = ""; object.createTime = null; object.updateTime = null; + object.indexStats = null; + object.indexUpdateMethod = options.enums === String ? "INDEX_UPDATE_METHOD_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -62167,6 +62232,10 @@ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.indexStats != null && message.hasOwnProperty("indexStats")) + object.indexStats = $root.google.cloud.aiplatform.v1.IndexStats.toObject(message.indexStats, options); + if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) + object.indexUpdateMethod = options.enums === String ? $root.google.cloud.aiplatform.v1.Index.IndexUpdateMethod[message.indexUpdateMethod] : message.indexUpdateMethod; return object; }; @@ -62196,9 +62265,1077 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1.Index"; }; + /** + * IndexUpdateMethod enum. + * @name google.cloud.aiplatform.v1.Index.IndexUpdateMethod + * @enum {number} + * @property {number} INDEX_UPDATE_METHOD_UNSPECIFIED=0 INDEX_UPDATE_METHOD_UNSPECIFIED value + * @property {number} BATCH_UPDATE=1 BATCH_UPDATE value + * @property {number} STREAM_UPDATE=2 STREAM_UPDATE value + */ + Index.IndexUpdateMethod = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDEX_UPDATE_METHOD_UNSPECIFIED"] = 0; + values[valuesById[1] = "BATCH_UPDATE"] = 1; + values[valuesById[2] = "STREAM_UPDATE"] = 2; + return values; + })(); + return Index; })(); + v1.IndexDatapoint = (function() { + + /** + * Properties of an IndexDatapoint. + * @memberof google.cloud.aiplatform.v1 + * @interface IIndexDatapoint + * @property {string|null} [datapointId] IndexDatapoint datapointId + * @property {Array.|null} [featureVector] IndexDatapoint featureVector + * @property {Array.|null} [restricts] IndexDatapoint restricts + * @property {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag|null} [crowdingTag] IndexDatapoint crowdingTag + */ + + /** + * Constructs a new IndexDatapoint. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an IndexDatapoint. + * @implements IIndexDatapoint + * @constructor + * @param {google.cloud.aiplatform.v1.IIndexDatapoint=} [properties] Properties to set + */ + function IndexDatapoint(properties) { + this.featureVector = []; + this.restricts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IndexDatapoint datapointId. + * @member {string} datapointId + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.datapointId = ""; + + /** + * IndexDatapoint featureVector. + * @member {Array.} featureVector + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.featureVector = $util.emptyArray; + + /** + * IndexDatapoint restricts. + * @member {Array.} restricts + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.restricts = $util.emptyArray; + + /** + * IndexDatapoint crowdingTag. + * @member {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag|null|undefined} crowdingTag + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.crowdingTag = null; + + /** + * Creates a new IndexDatapoint instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1.IIndexDatapoint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.IndexDatapoint} IndexDatapoint instance + */ + IndexDatapoint.create = function create(properties) { + return new IndexDatapoint(properties); + }; + + /** + * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexDatapoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datapointId != null && Object.hasOwnProperty.call(message, "datapointId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datapointId); + if (message.featureVector != null && message.featureVector.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.featureVector.length; ++i) + writer.float(message.featureVector[i]); + writer.ldelim(); + } + if (message.restricts != null && message.restricts.length) + for (var i = 0; i < message.restricts.length; ++i) + $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.encode(message.restricts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.crowdingTag != null && Object.hasOwnProperty.call(message, "crowdingTag")) + $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.encode(message.crowdingTag, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexDatapoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @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.IndexDatapoint} IndexDatapoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexDatapoint.decode = function decode(reader, 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.IndexDatapoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.datapointId = reader.string(); + break; + } + case 2: { + if (!(message.featureVector && message.featureVector.length)) + message.featureVector = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.featureVector.push(reader.float()); + } else + message.featureVector.push(reader.float()); + break; + } + case 4: { + if (!(message.restricts && message.restricts.length)) + message.restricts = []; + message.restricts.push($root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.decode(reader, reader.uint32())); + break; + } + case 5: { + message.crowdingTag = $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.IndexDatapoint} IndexDatapoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexDatapoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexDatapoint message. + * @function verify + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexDatapoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datapointId != null && message.hasOwnProperty("datapointId")) + if (!$util.isString(message.datapointId)) + return "datapointId: string expected"; + if (message.featureVector != null && message.hasOwnProperty("featureVector")) { + if (!Array.isArray(message.featureVector)) + return "featureVector: array expected"; + for (var i = 0; i < message.featureVector.length; ++i) + if (typeof message.featureVector[i] !== "number") + return "featureVector: number[] expected"; + } + if (message.restricts != null && message.hasOwnProperty("restricts")) { + if (!Array.isArray(message.restricts)) + return "restricts: array expected"; + for (var i = 0; i < message.restricts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.verify(message.restricts[i]); + if (error) + return "restricts." + error; + } + } + if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) { + var error = $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.verify(message.crowdingTag); + if (error) + return "crowdingTag." + error; + } + return null; + }; + + /** + * Creates an IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.IndexDatapoint} IndexDatapoint + */ + IndexDatapoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.IndexDatapoint) + return object; + var message = new $root.google.cloud.aiplatform.v1.IndexDatapoint(); + if (object.datapointId != null) + message.datapointId = String(object.datapointId); + if (object.featureVector) { + if (!Array.isArray(object.featureVector)) + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.featureVector: array expected"); + message.featureVector = []; + for (var i = 0; i < object.featureVector.length; ++i) + message.featureVector[i] = Number(object.featureVector[i]); + } + if (object.restricts) { + if (!Array.isArray(object.restricts)) + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.restricts: array expected"); + message.restricts = []; + for (var i = 0; i < object.restricts.length; ++i) { + if (typeof object.restricts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.restricts: object expected"); + message.restricts[i] = $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.fromObject(object.restricts[i]); + } + } + if (object.crowdingTag != null) { + if (typeof object.crowdingTag !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.crowdingTag: object expected"); + message.crowdingTag = $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.fromObject(object.crowdingTag); + } + return message; + }; + + /** + * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint} message IndexDatapoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexDatapoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.featureVector = []; + object.restricts = []; + } + if (options.defaults) { + object.datapointId = ""; + object.crowdingTag = null; + } + if (message.datapointId != null && message.hasOwnProperty("datapointId")) + object.datapointId = message.datapointId; + if (message.featureVector && message.featureVector.length) { + object.featureVector = []; + for (var j = 0; j < message.featureVector.length; ++j) + object.featureVector[j] = options.json && !isFinite(message.featureVector[j]) ? String(message.featureVector[j]) : message.featureVector[j]; + } + if (message.restricts && message.restricts.length) { + object.restricts = []; + for (var j = 0; j < message.restricts.length; ++j) + object.restricts[j] = $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.toObject(message.restricts[j], options); + } + if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) + object.crowdingTag = $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.toObject(message.crowdingTag, options); + return object; + }; + + /** + * Converts this IndexDatapoint to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @instance + * @returns {Object.} JSON object + */ + IndexDatapoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexDatapoint + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexDatapoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexDatapoint"; + }; + + IndexDatapoint.Restriction = (function() { + + /** + * Properties of a Restriction. + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @interface IRestriction + * @property {string|null} [namespace] Restriction namespace + * @property {Array.|null} [allowList] Restriction allowList + * @property {Array.|null} [denyList] Restriction denyList + */ + + /** + * Constructs a new Restriction. + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @classdesc Represents a Restriction. + * @implements IRestriction + * @constructor + * @param {google.cloud.aiplatform.v1.IndexDatapoint.IRestriction=} [properties] Properties to set + */ + function Restriction(properties) { + this.allowList = []; + this.denyList = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Restriction namespace. + * @member {string} namespace + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.namespace = ""; + + /** + * Restriction allowList. + * @member {Array.} allowList + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.allowList = $util.emptyArray; + + /** + * Restriction denyList. + * @member {Array.} denyList + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.denyList = $util.emptyArray; + + /** + * Creates a new Restriction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.IRestriction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} Restriction instance + */ + Restriction.create = function create(properties) { + return new Restriction(properties); + }; + + /** + * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.Restriction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Restriction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.namespace != null && Object.hasOwnProperty.call(message, "namespace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespace); + if (message.allowList != null && message.allowList.length) + for (var i = 0; i < message.allowList.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowList[i]); + if (message.denyList != null && message.denyList.length) + for (var i = 0; i < message.denyList.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.denyList[i]); + return writer; + }; + + /** + * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.Restriction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Restriction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Restriction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @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.IndexDatapoint.Restriction} Restriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Restriction.decode = function decode(reader, 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.IndexDatapoint.Restriction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namespace = reader.string(); + break; + } + case 2: { + if (!(message.allowList && message.allowList.length)) + message.allowList = []; + message.allowList.push(reader.string()); + break; + } + case 3: { + if (!(message.denyList && message.denyList.length)) + message.denyList = []; + message.denyList.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Restriction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} Restriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Restriction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Restriction message. + * @function verify + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Restriction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + if (message.allowList != null && message.hasOwnProperty("allowList")) { + if (!Array.isArray(message.allowList)) + return "allowList: array expected"; + for (var i = 0; i < message.allowList.length; ++i) + if (!$util.isString(message.allowList[i])) + return "allowList: string[] expected"; + } + if (message.denyList != null && message.hasOwnProperty("denyList")) { + if (!Array.isArray(message.denyList)) + return "denyList: array expected"; + for (var i = 0; i < message.denyList.length; ++i) + if (!$util.isString(message.denyList[i])) + return "denyList: string[] expected"; + } + return null; + }; + + /** + * Creates a Restriction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} Restriction + */ + Restriction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction) + return object; + var message = new $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction(); + if (object.namespace != null) + message.namespace = String(object.namespace); + if (object.allowList) { + if (!Array.isArray(object.allowList)) + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.Restriction.allowList: array expected"); + message.allowList = []; + for (var i = 0; i < object.allowList.length; ++i) + message.allowList[i] = String(object.allowList[i]); + } + if (object.denyList) { + if (!Array.isArray(object.denyList)) + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.Restriction.denyList: array expected"); + message.denyList = []; + for (var i = 0; i < object.denyList.length; ++i) + message.denyList[i] = String(object.denyList[i]); + } + return message; + }; + + /** + * Creates a plain object from a Restriction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} message Restriction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Restriction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.allowList = []; + object.denyList = []; + } + if (options.defaults) + object.namespace = ""; + if (message.namespace != null && message.hasOwnProperty("namespace")) + object.namespace = message.namespace; + if (message.allowList && message.allowList.length) { + object.allowList = []; + for (var j = 0; j < message.allowList.length; ++j) + object.allowList[j] = message.allowList[j]; + } + if (message.denyList && message.denyList.length) { + object.denyList = []; + for (var j = 0; j < message.denyList.length; ++j) + object.denyList[j] = message.denyList[j]; + } + return object; + }; + + /** + * Converts this Restriction to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @instance + * @returns {Object.} JSON object + */ + Restriction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Restriction + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Restriction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexDatapoint.Restriction"; + }; + + return Restriction; + })(); + + IndexDatapoint.CrowdingTag = (function() { + + /** + * Properties of a CrowdingTag. + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @interface ICrowdingTag + * @property {string|null} [crowdingAttribute] CrowdingTag crowdingAttribute + */ + + /** + * Constructs a new CrowdingTag. + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @classdesc Represents a CrowdingTag. + * @implements ICrowdingTag + * @constructor + * @param {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set + */ + function CrowdingTag(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CrowdingTag crowdingAttribute. + * @member {string} crowdingAttribute + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @instance + */ + CrowdingTag.prototype.crowdingAttribute = ""; + + /** + * Creates a new CrowdingTag instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} CrowdingTag instance + */ + CrowdingTag.create = function create(properties) { + return new CrowdingTag(properties); + }; + + /** + * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CrowdingTag.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.crowdingAttribute != null && Object.hasOwnProperty.call(message, "crowdingAttribute")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.crowdingAttribute); + return writer; + }; + + /** + * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CrowdingTag.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @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.IndexDatapoint.CrowdingTag} CrowdingTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CrowdingTag.decode = function decode(reader, 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.IndexDatapoint.CrowdingTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.crowdingAttribute = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} CrowdingTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CrowdingTag.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CrowdingTag message. + * @function verify + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CrowdingTag.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) + if (!$util.isString(message.crowdingAttribute)) + return "crowdingAttribute: string expected"; + return null; + }; + + /** + * Creates a CrowdingTag message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} CrowdingTag + */ + CrowdingTag.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag) + return object; + var message = new $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag(); + if (object.crowdingAttribute != null) + message.crowdingAttribute = String(object.crowdingAttribute); + return message; + }; + + /** + * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} message CrowdingTag + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CrowdingTag.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.crowdingAttribute = ""; + if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) + object.crowdingAttribute = message.crowdingAttribute; + return object; + }; + + /** + * Converts this CrowdingTag to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @instance + * @returns {Object.} JSON object + */ + CrowdingTag.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CrowdingTag + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CrowdingTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag"; + }; + + return CrowdingTag; + })(); + + return IndexDatapoint; + })(); + + v1.IndexStats = (function() { + + /** + * Properties of an IndexStats. + * @memberof google.cloud.aiplatform.v1 + * @interface IIndexStats + * @property {number|Long|null} [vectorsCount] IndexStats vectorsCount + * @property {number|null} [shardsCount] IndexStats shardsCount + */ + + /** + * Constructs a new IndexStats. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an IndexStats. + * @implements IIndexStats + * @constructor + * @param {google.cloud.aiplatform.v1.IIndexStats=} [properties] Properties to set + */ + function IndexStats(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IndexStats vectorsCount. + * @member {number|Long} vectorsCount + * @memberof google.cloud.aiplatform.v1.IndexStats + * @instance + */ + IndexStats.prototype.vectorsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * IndexStats shardsCount. + * @member {number} shardsCount + * @memberof google.cloud.aiplatform.v1.IndexStats + * @instance + */ + IndexStats.prototype.shardsCount = 0; + + /** + * Creates a new IndexStats instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1.IIndexStats=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.IndexStats} IndexStats instance + */ + IndexStats.create = function create(properties) { + return new IndexStats(properties); + }; + + /** + * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexStats.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1.IIndexStats} message IndexStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexStats.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vectorsCount != null && Object.hasOwnProperty.call(message, "vectorsCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.vectorsCount); + if (message.shardsCount != null && Object.hasOwnProperty.call(message, "shardsCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.shardsCount); + return writer; + }; + + /** + * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexStats.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1.IIndexStats} message IndexStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexStats.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexStats message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.IndexStats + * @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.IndexStats} IndexStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexStats.decode = function decode(reader, 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.IndexStats(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.vectorsCount = reader.int64(); + break; + } + case 2: { + message.shardsCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.IndexStats} IndexStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexStats.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexStats message. + * @function verify + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexStats.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) + if (!$util.isInteger(message.vectorsCount) && !(message.vectorsCount && $util.isInteger(message.vectorsCount.low) && $util.isInteger(message.vectorsCount.high))) + return "vectorsCount: integer|Long expected"; + if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) + if (!$util.isInteger(message.shardsCount)) + return "shardsCount: integer expected"; + return null; + }; + + /** + * Creates an IndexStats message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.IndexStats} IndexStats + */ + IndexStats.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.IndexStats) + return object; + var message = new $root.google.cloud.aiplatform.v1.IndexStats(); + if (object.vectorsCount != null) + if ($util.Long) + (message.vectorsCount = $util.Long.fromValue(object.vectorsCount)).unsigned = false; + else if (typeof object.vectorsCount === "string") + message.vectorsCount = parseInt(object.vectorsCount, 10); + else if (typeof object.vectorsCount === "number") + message.vectorsCount = object.vectorsCount; + else if (typeof object.vectorsCount === "object") + message.vectorsCount = new $util.LongBits(object.vectorsCount.low >>> 0, object.vectorsCount.high >>> 0).toNumber(); + if (object.shardsCount != null) + message.shardsCount = object.shardsCount | 0; + return message; + }; + + /** + * Creates a plain object from an IndexStats message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1.IndexStats} message IndexStats + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexStats.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.vectorsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.vectorsCount = options.longs === String ? "0" : 0; + object.shardsCount = 0; + } + if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) + if (typeof message.vectorsCount === "number") + object.vectorsCount = options.longs === String ? String(message.vectorsCount) : message.vectorsCount; + else + object.vectorsCount = options.longs === String ? $util.Long.prototype.toString.call(message.vectorsCount) : options.longs === Number ? new $util.LongBits(message.vectorsCount.low >>> 0, message.vectorsCount.high >>> 0).toNumber() : message.vectorsCount; + if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) + object.shardsCount = message.shardsCount; + return object; + }; + + /** + * Converts this IndexStats to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.IndexStats + * @instance + * @returns {Object.} JSON object + */ + IndexStats.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexStats + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexStats"; + }; + + return IndexStats; + })(); + v1.IndexEndpoint = (function() { /** @@ -67958,6 +69095,72 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|upsertDatapoints}. + * @memberof google.cloud.aiplatform.v1.IndexService + * @typedef UpsertDatapointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.UpsertDatapointsResponse} [response] UpsertDatapointsResponse + */ + + /** + * Calls UpsertDatapoints. + * @function upsertDatapoints + * @memberof google.cloud.aiplatform.v1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexService.UpsertDatapointsCallback} callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.upsertDatapoints = function upsertDatapoints(request, callback) { + return this.rpcCall(upsertDatapoints, $root.google.cloud.aiplatform.v1.UpsertDatapointsRequest, $root.google.cloud.aiplatform.v1.UpsertDatapointsResponse, request, callback); + }, "name", { value: "UpsertDatapoints" }); + + /** + * Calls UpsertDatapoints. + * @function upsertDatapoints + * @memberof google.cloud.aiplatform.v1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|removeDatapoints}. + * @memberof google.cloud.aiplatform.v1.IndexService + * @typedef RemoveDatapointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.RemoveDatapointsResponse} [response] RemoveDatapointsResponse + */ + + /** + * Calls RemoveDatapoints. + * @function removeDatapoints + * @memberof google.cloud.aiplatform.v1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexService.RemoveDatapointsCallback} callback Node-style callback called with the error, if any, and RemoveDatapointsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.removeDatapoints = function removeDatapoints(request, callback) { + return this.rpcCall(removeDatapoints, $root.google.cloud.aiplatform.v1.RemoveDatapointsRequest, $root.google.cloud.aiplatform.v1.RemoveDatapointsResponse, request, callback); + }, "name", { value: "RemoveDatapoints" }); + + /** + * Calls RemoveDatapoints. + * @function removeDatapoints + * @memberof google.cloud.aiplatform.v1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return IndexService; })(); @@ -69859,6 +71062,847 @@ return DeleteIndexRequest; })(); + v1.UpsertDatapointsRequest = (function() { + + /** + * Properties of an UpsertDatapointsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IUpsertDatapointsRequest + * @property {string|null} [index] UpsertDatapointsRequest index + * @property {Array.|null} [datapoints] UpsertDatapointsRequest datapoints + */ + + /** + * Constructs a new UpsertDatapointsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an UpsertDatapointsRequest. + * @implements IUpsertDatapointsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest=} [properties] Properties to set + */ + function UpsertDatapointsRequest(properties) { + this.datapoints = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpsertDatapointsRequest index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @instance + */ + UpsertDatapointsRequest.prototype.index = ""; + + /** + * UpsertDatapointsRequest datapoints. + * @member {Array.} datapoints + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @instance + */ + UpsertDatapointsRequest.prototype.datapoints = $util.emptyArray; + + /** + * Creates a new UpsertDatapointsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsRequest} UpsertDatapointsRequest instance + */ + UpsertDatapointsRequest.create = function create(properties) { + return new UpsertDatapointsRequest(properties); + }; + + /** + * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpsertDatapointsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); + if (message.datapoints != null && message.datapoints.length) + for (var i = 0; i < message.datapoints.length; ++i) + $root.google.cloud.aiplatform.v1.IndexDatapoint.encode(message.datapoints[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpsertDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @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.UpsertDatapointsRequest} UpsertDatapointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpsertDatapointsRequest.decode = function decode(reader, 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.UpsertDatapointsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.index = reader.string(); + break; + } + case 2: { + if (!(message.datapoints && message.datapoints.length)) + message.datapoints = []; + message.datapoints.push($root.google.cloud.aiplatform.v1.IndexDatapoint.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsRequest} UpsertDatapointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpsertDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpsertDatapointsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpsertDatapointsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.datapoints != null && message.hasOwnProperty("datapoints")) { + if (!Array.isArray(message.datapoints)) + return "datapoints: array expected"; + for (var i = 0; i < message.datapoints.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.IndexDatapoint.verify(message.datapoints[i]); + if (error) + return "datapoints." + error; + } + } + return null; + }; + + /** + * Creates an UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsRequest} UpsertDatapointsRequest + */ + UpsertDatapointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpsertDatapointsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.UpsertDatapointsRequest(); + if (object.index != null) + message.index = String(object.index); + if (object.datapoints) { + if (!Array.isArray(object.datapoints)) + throw TypeError(".google.cloud.aiplatform.v1.UpsertDatapointsRequest.datapoints: array expected"); + message.datapoints = []; + for (var i = 0; i < object.datapoints.length; ++i) { + if (typeof object.datapoints[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpsertDatapointsRequest.datapoints: object expected"); + message.datapoints[i] = $root.google.cloud.aiplatform.v1.IndexDatapoint.fromObject(object.datapoints[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1.UpsertDatapointsRequest} message UpsertDatapointsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpsertDatapointsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.datapoints = []; + if (options.defaults) + object.index = ""; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.datapoints && message.datapoints.length) { + object.datapoints = []; + for (var j = 0; j < message.datapoints.length; ++j) + object.datapoints[j] = $root.google.cloud.aiplatform.v1.IndexDatapoint.toObject(message.datapoints[j], options); + } + return object; + }; + + /** + * Converts this UpsertDatapointsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @instance + * @returns {Object.} JSON object + */ + UpsertDatapointsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpsertDatapointsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpsertDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpsertDatapointsRequest"; + }; + + return UpsertDatapointsRequest; + })(); + + v1.UpsertDatapointsResponse = (function() { + + /** + * Properties of an UpsertDatapointsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IUpsertDatapointsResponse + */ + + /** + * Constructs a new UpsertDatapointsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an UpsertDatapointsResponse. + * @implements IUpsertDatapointsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsResponse=} [properties] Properties to set + */ + function UpsertDatapointsResponse(properties) { + if (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 UpsertDatapointsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @static + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsResponse} UpsertDatapointsResponse instance + */ + UpsertDatapointsResponse.create = function create(properties) { + return new UpsertDatapointsResponse(properties); + }; + + /** + * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @static + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpsertDatapointsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @static + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpsertDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @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.UpsertDatapointsResponse} UpsertDatapointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpsertDatapointsResponse.decode = function decode(reader, 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.UpsertDatapointsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsResponse} UpsertDatapointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpsertDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpsertDatapointsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpsertDatapointsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsResponse} UpsertDatapointsResponse + */ + UpsertDatapointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpsertDatapointsResponse) + return object; + return new $root.google.cloud.aiplatform.v1.UpsertDatapointsResponse(); + }; + + /** + * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @static + * @param {google.cloud.aiplatform.v1.UpsertDatapointsResponse} message UpsertDatapointsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpsertDatapointsResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this UpsertDatapointsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @instance + * @returns {Object.} JSON object + */ + UpsertDatapointsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpsertDatapointsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpsertDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpsertDatapointsResponse"; + }; + + return UpsertDatapointsResponse; + })(); + + v1.RemoveDatapointsRequest = (function() { + + /** + * Properties of a RemoveDatapointsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IRemoveDatapointsRequest + * @property {string|null} [index] RemoveDatapointsRequest index + * @property {Array.|null} [datapointIds] RemoveDatapointsRequest datapointIds + */ + + /** + * Constructs a new RemoveDatapointsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a RemoveDatapointsRequest. + * @implements IRemoveDatapointsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest=} [properties] Properties to set + */ + function RemoveDatapointsRequest(properties) { + this.datapointIds = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RemoveDatapointsRequest index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @instance + */ + RemoveDatapointsRequest.prototype.index = ""; + + /** + * RemoveDatapointsRequest datapointIds. + * @member {Array.} datapointIds + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @instance + */ + RemoveDatapointsRequest.prototype.datapointIds = $util.emptyArray; + + /** + * Creates a new RemoveDatapointsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsRequest} RemoveDatapointsRequest instance + */ + RemoveDatapointsRequest.create = function create(properties) { + return new RemoveDatapointsRequest(properties); + }; + + /** + * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveDatapointsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); + if (message.datapointIds != null && message.datapointIds.length) + for (var i = 0; i < message.datapointIds.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datapointIds[i]); + return writer; + }; + + /** + * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @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.RemoveDatapointsRequest} RemoveDatapointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveDatapointsRequest.decode = function decode(reader, 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.RemoveDatapointsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.index = reader.string(); + break; + } + case 2: { + if (!(message.datapointIds && message.datapointIds.length)) + message.datapointIds = []; + message.datapointIds.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsRequest} RemoveDatapointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RemoveDatapointsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RemoveDatapointsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.datapointIds != null && message.hasOwnProperty("datapointIds")) { + if (!Array.isArray(message.datapointIds)) + return "datapointIds: array expected"; + for (var i = 0; i < message.datapointIds.length; ++i) + if (!$util.isString(message.datapointIds[i])) + return "datapointIds: string[] expected"; + } + return null; + }; + + /** + * Creates a RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsRequest} RemoveDatapointsRequest + */ + RemoveDatapointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RemoveDatapointsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.RemoveDatapointsRequest(); + if (object.index != null) + message.index = String(object.index); + if (object.datapointIds) { + if (!Array.isArray(object.datapointIds)) + throw TypeError(".google.cloud.aiplatform.v1.RemoveDatapointsRequest.datapointIds: array expected"); + message.datapointIds = []; + for (var i = 0; i < object.datapointIds.length; ++i) + message.datapointIds[i] = String(object.datapointIds[i]); + } + return message; + }; + + /** + * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1.RemoveDatapointsRequest} message RemoveDatapointsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RemoveDatapointsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.datapointIds = []; + if (options.defaults) + object.index = ""; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.datapointIds && message.datapointIds.length) { + object.datapointIds = []; + for (var j = 0; j < message.datapointIds.length; ++j) + object.datapointIds[j] = message.datapointIds[j]; + } + return object; + }; + + /** + * Converts this RemoveDatapointsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @instance + * @returns {Object.} JSON object + */ + RemoveDatapointsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RemoveDatapointsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RemoveDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveDatapointsRequest"; + }; + + return RemoveDatapointsRequest; + })(); + + v1.RemoveDatapointsResponse = (function() { + + /** + * Properties of a RemoveDatapointsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IRemoveDatapointsResponse + */ + + /** + * Constructs a new RemoveDatapointsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a RemoveDatapointsResponse. + * @implements IRemoveDatapointsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsResponse=} [properties] Properties to set + */ + function RemoveDatapointsResponse(properties) { + if (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 RemoveDatapointsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @static + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsResponse} RemoveDatapointsResponse instance + */ + RemoveDatapointsResponse.create = function create(properties) { + return new RemoveDatapointsResponse(properties); + }; + + /** + * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @static + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveDatapointsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @static + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @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.RemoveDatapointsResponse} RemoveDatapointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveDatapointsResponse.decode = function decode(reader, 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.RemoveDatapointsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsResponse} RemoveDatapointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RemoveDatapointsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RemoveDatapointsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsResponse} RemoveDatapointsResponse + */ + RemoveDatapointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RemoveDatapointsResponse) + return object; + return new $root.google.cloud.aiplatform.v1.RemoveDatapointsResponse(); + }; + + /** + * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @static + * @param {google.cloud.aiplatform.v1.RemoveDatapointsResponse} message RemoveDatapointsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RemoveDatapointsResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this RemoveDatapointsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @instance + * @returns {Object.} JSON object + */ + RemoveDatapointsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RemoveDatapointsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RemoveDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveDatapointsResponse"; + }; + + return RemoveDatapointsResponse; + })(); + v1.NearestNeighborSearchOperationMetadata = (function() { /** @@ -113093,6 +115137,7 @@ * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory * @property {Object.|null} [parameterValues] RuntimeConfig parameterValues * @property {google.cloud.aiplatform.v1.PipelineFailurePolicy|null} [failurePolicy] RuntimeConfig failurePolicy + * @property {Object.|null} [inputArtifacts] RuntimeConfig inputArtifacts */ /** @@ -113106,6 +115151,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) @@ -113144,6 +115190,14 @@ */ RuntimeConfig.prototype.failurePolicy = 0; + /** + * RuntimeConfig inputArtifacts. + * @member {Object.} inputArtifacts + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.inputArtifacts = $util.emptyObject; + /** * Creates a new RuntimeConfig instance using the specified properties. * @function create @@ -113182,6 +115236,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.v1.PipelineJob.RuntimeConfig.InputArtifact.encode(message.inputArtifacts[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; @@ -113270,6 +115329,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.v1.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; @@ -113337,6 +115419,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.v1.PipelineJob.RuntimeConfig.InputArtifact.verify(message.inputArtifacts[key[i]]); + if (error) + return "inputArtifacts." + error; + } + } return null; }; @@ -113388,6 +115480,16 @@ message.failurePolicy = 2; break; } + if (object.inputArtifacts) { + if (typeof object.inputArtifacts !== "object") + throw TypeError(".google.cloud.aiplatform.v1.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.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); + message.inputArtifacts[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.fromObject(object.inputArtifacts[keys[i]]); + } + } return message; }; @@ -113407,6 +115509,7 @@ if (options.objects || options.defaults) { object.parameters = {}; object.parameterValues = {}; + object.inputArtifacts = {}; } if (options.defaults) { object.gcsOutputDirectory = ""; @@ -113427,6 +115530,11 @@ } if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) object.failurePolicy = options.enums === String ? $root.google.cloud.aiplatform.v1.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.v1.PipelineJob.RuntimeConfig.InputArtifact.toObject(message.inputArtifacts[keys2[j]], options); + } return object; }; @@ -113456,6 +115564,227 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig"; }; + RuntimeConfig.InputArtifact = (function() { + + /** + * Properties of an InputArtifact. + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @interface IInputArtifact + * @property {string|null} [artifactId] InputArtifact artifactId + */ + + /** + * Constructs a new InputArtifact. + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @classdesc Represents an InputArtifact. + * @implements IInputArtifact + * @constructor + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.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.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.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.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.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.v1.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.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + */ + InputArtifact.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact) + return object; + var message = new $root.google.cloud.aiplatform.v1.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.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.PipelineJob.RuntimeConfig.InputArtifact"; + }; + + return InputArtifact; + })(); + return RuntimeConfig; })(); @@ -118445,6 +120774,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 */ /** @@ -118502,6 +120832,14 @@ */ ListPipelineJobsRequest.prototype.orderBy = ""; + /** + * ListPipelineJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @instance + */ + ListPipelineJobsRequest.prototype.readMask = null; + /** * Creates a new ListPipelineJobsRequest instance using the specified properties. * @function create @@ -118536,6 +120874,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; }; @@ -118590,6 +120930,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; @@ -118640,6 +120984,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; }; @@ -118665,6 +121014,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.v1.ListPipelineJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } return message; }; @@ -118687,6 +121041,7 @@ object.pageSize = 0; object.pageToken = ""; object.orderBy = ""; + object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -118698,6 +121053,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; }; @@ -163299,6 +165656,8 @@ * @property {Object.|null} [labels] BatchPredictionJob labels * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] BatchPredictionJob encryptionSpec * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null} [modelMonitoringConfig] BatchPredictionJob modelMonitoringConfig + * @property {Array.|null} [modelMonitoringStatsAnomalies] BatchPredictionJob modelMonitoringStatsAnomalies + * @property {google.rpc.IStatus|null} [modelMonitoringStatus] BatchPredictionJob modelMonitoringStatus */ /** @@ -163312,6 +165671,7 @@ function BatchPredictionJob(properties) { this.partialFailures = []; this.labels = {}; + this.modelMonitoringStatsAnomalies = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -163526,6 +165886,22 @@ */ BatchPredictionJob.prototype.modelMonitoringConfig = null; + /** + * BatchPredictionJob modelMonitoringStatsAnomalies. + * @member {Array.} modelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.modelMonitoringStatsAnomalies = $util.emptyArray; + + /** + * BatchPredictionJob modelMonitoringStatus. + * @member {google.rpc.IStatus|null|undefined} modelMonitoringStatus + * @memberof google.cloud.aiplatform.v1beta1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.modelMonitoringStatus = null; + /** * Creates a new BatchPredictionJob instance using the specified properties. * @function create @@ -163604,6 +165980,11 @@ writer.uint32(/* id 29, wireType 2 =*/234).string(message.serviceAccount); if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) writer.uint32(/* id 30, wireType 2 =*/242).string(message.modelVersionId); + if (message.modelMonitoringStatsAnomalies != null && message.modelMonitoringStatsAnomalies.length) + for (var i = 0; i < message.modelMonitoringStatsAnomalies.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.encode(message.modelMonitoringStatsAnomalies[i], writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); + if (message.modelMonitoringStatus != null && Object.hasOwnProperty.call(message, "modelMonitoringStatus")) + $root.google.rpc.Status.encode(message.modelMonitoringStatus, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); return writer; }; @@ -163763,6 +166144,16 @@ message.modelMonitoringConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.decode(reader, reader.uint32()); break; } + case 31: { + if (!(message.modelMonitoringStatsAnomalies && message.modelMonitoringStatsAnomalies.length)) + message.modelMonitoringStatsAnomalies = []; + message.modelMonitoringStatsAnomalies.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); + break; + } + case 32: { + message.modelMonitoringStatus = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -163935,6 +166326,20 @@ if (error) return "modelMonitoringConfig." + error; } + if (message.modelMonitoringStatsAnomalies != null && message.hasOwnProperty("modelMonitoringStatsAnomalies")) { + if (!Array.isArray(message.modelMonitoringStatsAnomalies)) + return "modelMonitoringStatsAnomalies: array expected"; + for (var i = 0; i < message.modelMonitoringStatsAnomalies.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify(message.modelMonitoringStatsAnomalies[i]); + if (error) + return "modelMonitoringStatsAnomalies." + error; + } + } + if (message.modelMonitoringStatus != null && message.hasOwnProperty("modelMonitoringStatus")) { + var error = $root.google.rpc.Status.verify(message.modelMonitoringStatus); + if (error) + return "modelMonitoringStatus." + error; + } return null; }; @@ -164110,6 +166515,21 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.modelMonitoringConfig: object expected"); message.modelMonitoringConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.fromObject(object.modelMonitoringConfig); } + if (object.modelMonitoringStatsAnomalies) { + if (!Array.isArray(object.modelMonitoringStatsAnomalies)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.modelMonitoringStatsAnomalies: array expected"); + message.modelMonitoringStatsAnomalies = []; + for (var i = 0; i < object.modelMonitoringStatsAnomalies.length; ++i) { + if (typeof object.modelMonitoringStatsAnomalies[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.modelMonitoringStatsAnomalies: object expected"); + message.modelMonitoringStatsAnomalies[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.fromObject(object.modelMonitoringStatsAnomalies[i]); + } + } + if (object.modelMonitoringStatus != null) { + if (typeof object.modelMonitoringStatus !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.modelMonitoringStatus: object expected"); + message.modelMonitoringStatus = $root.google.rpc.Status.fromObject(object.modelMonitoringStatus); + } return message; }; @@ -164126,8 +166546,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.partialFailures = []; + object.modelMonitoringStatsAnomalies = []; + } if (options.objects || options.defaults) object.labels = {}; if (options.defaults) { @@ -164155,6 +166577,7 @@ object.unmanagedContainerModel = null; object.serviceAccount = ""; object.modelVersionId = ""; + object.modelMonitoringStatus = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -164215,6 +166638,13 @@ object.serviceAccount = message.serviceAccount; if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) object.modelVersionId = message.modelVersionId; + if (message.modelMonitoringStatsAnomalies && message.modelMonitoringStatsAnomalies.length) { + object.modelMonitoringStatsAnomalies = []; + for (var j = 0; j < message.modelMonitoringStatsAnomalies.length; ++j) + object.modelMonitoringStatsAnomalies[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.toObject(message.modelMonitoringStatsAnomalies[j], options); + } + if (message.modelMonitoringStatus != null && message.hasOwnProperty("modelMonitoringStatus")) + object.modelMonitoringStatus = $root.google.rpc.Status.toObject(message.modelMonitoringStatus, options); return object; }; @@ -177082,27 +179512,69 @@ return ManualBatchTuningParameters; })(); - v1beta1.ModelMonitoringConfig = (function() { + /** + * ModelDeploymentMonitoringObjectiveType enum. + * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType + * @enum {number} + * @property {number} MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED=0 MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED value + * @property {number} RAW_FEATURE_SKEW=1 RAW_FEATURE_SKEW value + * @property {number} RAW_FEATURE_DRIFT=2 RAW_FEATURE_DRIFT value + * @property {number} FEATURE_ATTRIBUTION_SKEW=3 FEATURE_ATTRIBUTION_SKEW value + * @property {number} FEATURE_ATTRIBUTION_DRIFT=4 FEATURE_ATTRIBUTION_DRIFT value + */ + v1beta1.ModelDeploymentMonitoringObjectiveType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RAW_FEATURE_SKEW"] = 1; + values[valuesById[2] = "RAW_FEATURE_DRIFT"] = 2; + values[valuesById[3] = "FEATURE_ATTRIBUTION_SKEW"] = 3; + values[valuesById[4] = "FEATURE_ATTRIBUTION_DRIFT"] = 4; + return values; + })(); + + v1beta1.ModelDeploymentMonitoringJob = (function() { /** - * Properties of a ModelMonitoringConfig. + * Properties of a ModelDeploymentMonitoringJob. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelMonitoringConfig - * @property {Array.|null} [objectiveConfigs] ModelMonitoringConfig objectiveConfigs - * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null} [alertConfig] ModelMonitoringConfig alertConfig - * @property {string|null} [analysisInstanceSchemaUri] ModelMonitoringConfig analysisInstanceSchemaUri + * @interface IModelDeploymentMonitoringJob + * @property {string|null} [name] ModelDeploymentMonitoringJob name + * @property {string|null} [displayName] ModelDeploymentMonitoringJob displayName + * @property {string|null} [endpoint] ModelDeploymentMonitoringJob endpoint + * @property {google.cloud.aiplatform.v1beta1.JobState|null} [state] ModelDeploymentMonitoringJob state + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null} [scheduleState] ModelDeploymentMonitoringJob scheduleState + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null} [latestMonitoringPipelineMetadata] ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata + * @property {Array.|null} [modelDeploymentMonitoringObjectiveConfigs] ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs + * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null} [modelDeploymentMonitoringScheduleConfig] ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig + * @property {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null} [loggingSamplingStrategy] ModelDeploymentMonitoringJob loggingSamplingStrategy + * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null} [modelMonitoringAlertConfig] ModelDeploymentMonitoringJob modelMonitoringAlertConfig + * @property {string|null} [predictInstanceSchemaUri] ModelDeploymentMonitoringJob predictInstanceSchemaUri + * @property {google.protobuf.IValue|null} [samplePredictInstance] ModelDeploymentMonitoringJob samplePredictInstance + * @property {string|null} [analysisInstanceSchemaUri] ModelDeploymentMonitoringJob analysisInstanceSchemaUri + * @property {Array.|null} [bigqueryTables] ModelDeploymentMonitoringJob bigqueryTables + * @property {google.protobuf.IDuration|null} [logTtl] ModelDeploymentMonitoringJob logTtl + * @property {Object.|null} [labels] ModelDeploymentMonitoringJob labels + * @property {google.protobuf.ITimestamp|null} [createTime] ModelDeploymentMonitoringJob createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] ModelDeploymentMonitoringJob updateTime + * @property {google.protobuf.ITimestamp|null} [nextScheduleTime] ModelDeploymentMonitoringJob nextScheduleTime + * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [statsAnomaliesBaseDirectory] ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] ModelDeploymentMonitoringJob encryptionSpec + * @property {boolean|null} [enableMonitoringPipelineLogs] ModelDeploymentMonitoringJob enableMonitoringPipelineLogs + * @property {google.rpc.IStatus|null} [error] ModelDeploymentMonitoringJob error */ /** - * Constructs a new ModelMonitoringConfig. + * Constructs a new ModelDeploymentMonitoringJob. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelMonitoringConfig. - * @implements IModelMonitoringConfig + * @classdesc Represents a ModelDeploymentMonitoringJob. + * @implements IModelDeploymentMonitoringJob * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob=} [properties] Properties to set */ - function ModelMonitoringConfig(properties) { - this.objectiveConfigs = []; + function ModelDeploymentMonitoringJob(properties) { + this.modelDeploymentMonitoringObjectiveConfigs = []; + this.bigqueryTables = []; + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177110,394 +179582,409 @@ } /** - * ModelMonitoringConfig objectiveConfigs. - * @member {Array.} objectiveConfigs - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * ModelDeploymentMonitoringJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @instance */ - ModelMonitoringConfig.prototype.objectiveConfigs = $util.emptyArray; + ModelDeploymentMonitoringJob.prototype.name = ""; /** - * ModelMonitoringConfig alertConfig. - * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null|undefined} alertConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * ModelDeploymentMonitoringJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @instance */ - ModelMonitoringConfig.prototype.alertConfig = null; + ModelDeploymentMonitoringJob.prototype.displayName = ""; /** - * ModelMonitoringConfig analysisInstanceSchemaUri. - * @member {string} analysisInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * ModelDeploymentMonitoringJob endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @instance */ - ModelMonitoringConfig.prototype.analysisInstanceSchemaUri = ""; + ModelDeploymentMonitoringJob.prototype.endpoint = ""; /** - * Creates a new ModelMonitoringConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} ModelMonitoringConfig instance + * ModelDeploymentMonitoringJob state. + * @member {google.cloud.aiplatform.v1beta1.JobState} state + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance */ - ModelMonitoringConfig.create = function create(properties) { - return new ModelMonitoringConfig(properties); - }; + ModelDeploymentMonitoringJob.prototype.state = 0; /** - * Encodes the specified ModelMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig} message ModelMonitoringConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ModelDeploymentMonitoringJob scheduleState. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState} scheduleState + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance */ - ModelMonitoringConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.alertConfig != null && Object.hasOwnProperty.call(message, "alertConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.encode(message.alertConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.objectiveConfigs != null && message.objectiveConfigs.length) - for (var i = 0; i < message.objectiveConfigs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.analysisInstanceSchemaUri); - return writer; - }; + ModelDeploymentMonitoringJob.prototype.scheduleState = 0; /** - * Encodes the specified ModelMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig} message ModelMonitoringConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null|undefined} latestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance */ - ModelMonitoringConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + ModelDeploymentMonitoringJob.prototype.latestMonitoringPipelineMetadata = null; /** - * Decodes a ModelMonitoringConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} ModelMonitoringConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. + * @member {Array.} modelDeploymentMonitoringObjectiveConfigs + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance */ - ModelMonitoringConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: { - if (!(message.objectiveConfigs && message.objectiveConfigs.length)) - message.objectiveConfigs = []; - message.objectiveConfigs.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32())); - break; - } - case 2: { - message.alertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); - break; - } - case 4: { - message.analysisInstanceSchemaUri = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringObjectiveConfigs = $util.emptyArray; /** - * Decodes a ModelMonitoringConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} ModelMonitoringConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. + * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null|undefined} modelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance */ - ModelMonitoringConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringScheduleConfig = null; /** - * Verifies a ModelMonitoringConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * ModelDeploymentMonitoringJob loggingSamplingStrategy. + * @member {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null|undefined} loggingSamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance */ - ModelMonitoringConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.objectiveConfigs != null && message.hasOwnProperty("objectiveConfigs")) { - if (!Array.isArray(message.objectiveConfigs)) - return "objectiveConfigs: array expected"; - for (var i = 0; i < message.objectiveConfigs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfigs[i]); - if (error) - return "objectiveConfigs." + error; - } - } - if (message.alertConfig != null && message.hasOwnProperty("alertConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify(message.alertConfig); - if (error) - return "alertConfig." + error; - } - if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) - if (!$util.isString(message.analysisInstanceSchemaUri)) - return "analysisInstanceSchemaUri: string expected"; - return null; - }; + ModelDeploymentMonitoringJob.prototype.loggingSamplingStrategy = null; /** - * Creates a ModelMonitoringConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} ModelMonitoringConfig + * ModelDeploymentMonitoringJob modelMonitoringAlertConfig. + * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null|undefined} modelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance */ - ModelMonitoringConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig(); - if (object.objectiveConfigs) { - if (!Array.isArray(object.objectiveConfigs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.objectiveConfigs: array expected"); - message.objectiveConfigs = []; - for (var i = 0; i < object.objectiveConfigs.length; ++i) { - if (typeof object.objectiveConfigs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.objectiveConfigs: object expected"); - message.objectiveConfigs[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfigs[i]); - } - } - if (object.alertConfig != null) { - if (typeof object.alertConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.alertConfig: object expected"); - message.alertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.fromObject(object.alertConfig); - } - if (object.analysisInstanceSchemaUri != null) - message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); - return message; - }; + ModelDeploymentMonitoringJob.prototype.modelMonitoringAlertConfig = null; /** - * Creates a plain object from a ModelMonitoringConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} message ModelMonitoringConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * ModelDeploymentMonitoringJob predictInstanceSchemaUri. + * @member {string} predictInstanceSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance */ - ModelMonitoringConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.objectiveConfigs = []; - if (options.defaults) { - object.alertConfig = null; - object.analysisInstanceSchemaUri = ""; - } - if (message.alertConfig != null && message.hasOwnProperty("alertConfig")) - object.alertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.toObject(message.alertConfig, options); - if (message.objectiveConfigs && message.objectiveConfigs.length) { - object.objectiveConfigs = []; - for (var j = 0; j < message.objectiveConfigs.length; ++j) - object.objectiveConfigs[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfigs[j], options); - } - if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) - object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; - return object; - }; + ModelDeploymentMonitoringJob.prototype.predictInstanceSchemaUri = ""; /** - * Converts this ModelMonitoringConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * ModelDeploymentMonitoringJob samplePredictInstance. + * @member {google.protobuf.IValue|null|undefined} samplePredictInstance + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @instance - * @returns {Object.} JSON object */ - ModelMonitoringConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + ModelDeploymentMonitoringJob.prototype.samplePredictInstance = null; /** - * Gets the default type url for ModelMonitoringConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * ModelDeploymentMonitoringJob analysisInstanceSchemaUri. + * @member {string} analysisInstanceSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance */ - ModelMonitoringConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelMonitoringConfig"; - }; + ModelDeploymentMonitoringJob.prototype.analysisInstanceSchemaUri = ""; - return ModelMonitoringConfig; - })(); + /** + * ModelDeploymentMonitoringJob bigqueryTables. + * @member {Array.} bigqueryTables + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.bigqueryTables = $util.emptyArray; - v1beta1.ModelMonitoringObjectiveConfig = (function() { + /** + * ModelDeploymentMonitoringJob logTtl. + * @member {google.protobuf.IDuration|null|undefined} logTtl + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.logTtl = null; /** - * Properties of a ModelMonitoringObjectiveConfig. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelMonitoringObjectiveConfig - * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null} [trainingDataset] ModelMonitoringObjectiveConfig trainingDataset - * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null} [trainingPredictionSkewDetectionConfig] ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig - * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null} [predictionDriftDetectionConfig] ModelMonitoringObjectiveConfig predictionDriftDetectionConfig - * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null} [explanationConfig] ModelMonitoringObjectiveConfig explanationConfig + * ModelDeploymentMonitoringJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance */ + ModelDeploymentMonitoringJob.prototype.labels = $util.emptyObject; /** - * Constructs a new ModelMonitoringObjectiveConfig. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelMonitoringObjectiveConfig. - * @implements IModelMonitoringObjectiveConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + * ModelDeploymentMonitoringJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance */ - function ModelMonitoringObjectiveConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ModelDeploymentMonitoringJob.prototype.createTime = null; /** - * ModelMonitoringObjectiveConfig trainingDataset. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null|undefined} trainingDataset - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * ModelDeploymentMonitoringJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @instance */ - ModelMonitoringObjectiveConfig.prototype.trainingDataset = null; + ModelDeploymentMonitoringJob.prototype.updateTime = null; /** - * ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null|undefined} trainingPredictionSkewDetectionConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * ModelDeploymentMonitoringJob nextScheduleTime. + * @member {google.protobuf.ITimestamp|null|undefined} nextScheduleTime + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @instance */ - ModelMonitoringObjectiveConfig.prototype.trainingPredictionSkewDetectionConfig = null; + ModelDeploymentMonitoringJob.prototype.nextScheduleTime = null; /** - * ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null|undefined} predictionDriftDetectionConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @instance */ - ModelMonitoringObjectiveConfig.prototype.predictionDriftDetectionConfig = null; + ModelDeploymentMonitoringJob.prototype.statsAnomaliesBaseDirectory = null; /** - * ModelMonitoringObjectiveConfig explanationConfig. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null|undefined} explanationConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * ModelDeploymentMonitoringJob encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @instance */ - ModelMonitoringObjectiveConfig.prototype.explanationConfig = null; + ModelDeploymentMonitoringJob.prototype.encryptionSpec = null; /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. + * @member {boolean} enableMonitoringPipelineLogs + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.enableMonitoringPipelineLogs = false; + + /** + * ModelDeploymentMonitoringJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.error = null; + + /** + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig instance + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob instance */ - ModelMonitoringObjectiveConfig.create = function create(properties) { - return new ModelMonitoringObjectiveConfig(properties); + ModelDeploymentMonitoringJob.create = function create(properties) { + return new ModelDeploymentMonitoringJob(properties); }; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringObjectiveConfig.encode = function encode(message, writer) { + ModelDeploymentMonitoringJob.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingDataset != null && Object.hasOwnProperty.call(message, "trainingDataset")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.encode(message.trainingDataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.trainingPredictionSkewDetectionConfig != null && Object.hasOwnProperty.call(message, "trainingPredictionSkewDetectionConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.encode(message.trainingPredictionSkewDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.predictionDriftDetectionConfig != null && Object.hasOwnProperty.call(message, "predictionDriftDetectionConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.encode(message.predictionDriftDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.explanationConfig != null && Object.hasOwnProperty.call(message, "explanationConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.encode(message.explanationConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.endpoint); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.scheduleState != null && Object.hasOwnProperty.call(message, "scheduleState")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scheduleState); + if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.modelDeploymentMonitoringObjectiveConfigs.length) + for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.encode(message.modelDeploymentMonitoringObjectiveConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.modelDeploymentMonitoringScheduleConfig != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringScheduleConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.encode(message.modelDeploymentMonitoringScheduleConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) + $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.predictInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "predictInstanceSchemaUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.predictInstanceSchemaUri); + if (message.bigqueryTables != null && message.bigqueryTables.length) + for (var i = 0; i < message.bigqueryTables.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.encode(message.bigqueryTables[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.nextScheduleTime != null && Object.hasOwnProperty.call(message, "nextScheduleTime")) + $root.google.protobuf.Timestamp.encode(message.nextScheduleTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.modelMonitoringAlertConfig != null && Object.hasOwnProperty.call(message, "modelMonitoringAlertConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.encode(message.modelMonitoringAlertConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.analysisInstanceSchemaUri); + if (message.logTtl != null && Object.hasOwnProperty.call(message, "logTtl")) + $root.google.protobuf.Duration.encode(message.logTtl, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.samplePredictInstance != null && Object.hasOwnProperty.call(message, "samplePredictInstance")) + $root.google.protobuf.Value.encode(message.samplePredictInstance, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.statsAnomaliesBaseDirectory != null && Object.hasOwnProperty.call(message, "statsAnomaliesBaseDirectory")) + $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.statsAnomaliesBaseDirectory, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.enableMonitoringPipelineLogs != null && Object.hasOwnProperty.call(message, "enableMonitoringPipelineLogs")) + writer.uint32(/* id 22, wireType 0 =*/176).bool(message.enableMonitoringPipelineLogs); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.latestMonitoringPipelineMetadata != null && Object.hasOwnProperty.call(message, "latestMonitoringPipelineMetadata")) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + ModelDeploymentMonitoringJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringObjectiveConfig.decode = function decode(reader, length) { + ModelDeploymentMonitoringJob.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.decode(reader, reader.uint32()); + message.displayName = reader.string(); break; } case 3: { - message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.decode(reader, reader.uint32()); + message.endpoint = reader.string(); + break; + } + case 4: { + message.state = reader.int32(); break; } case 5: { - message.explanationConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.decode(reader, reader.uint32()); + message.scheduleState = reader.int32(); + break; + } + case 25: { + message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length)) + message.modelDeploymentMonitoringObjectiveConfigs = []; + message.modelDeploymentMonitoringObjectiveConfigs.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.decode(reader, reader.uint32())); + break; + } + case 7: { + message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.decode(reader, reader.uint32()); + break; + } + case 8: { + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.decode(reader, reader.uint32()); + break; + } + case 15: { + message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); + break; + } + case 9: { + message.predictInstanceSchemaUri = reader.string(); + break; + } + case 19: { + message.samplePredictInstance = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 16: { + message.analysisInstanceSchemaUri = reader.string(); + break; + } + case 10: { + if (!(message.bigqueryTables && message.bigqueryTables.length)) + message.bigqueryTables = []; + message.bigqueryTables.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.decode(reader, reader.uint32())); + break; + } + case 17: { + message.logTtl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 11: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 12: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 14: { + message.nextScheduleTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 20: { + message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 21: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 22: { + message.enableMonitoringPipelineLogs = reader.bool(); + break; + } + case 23: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } default: @@ -177509,169 +179996,489 @@ }; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + ModelDeploymentMonitoringJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies a ModelDeploymentMonitoringJob message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringObjectiveConfig.verify = function verify(message) { + ModelDeploymentMonitoringJob.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify(message.trainingDataset); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) + switch (message.scheduleState) { + default: + return "scheduleState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify(message.latestMonitoringPipelineMetadata); if (error) - return "trainingDataset." + error; + return "latestMonitoringPipelineMetadata." + error; } - if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify(message.trainingPredictionSkewDetectionConfig); + if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.hasOwnProperty("modelDeploymentMonitoringObjectiveConfigs")) { + if (!Array.isArray(message.modelDeploymentMonitoringObjectiveConfigs)) + return "modelDeploymentMonitoringObjectiveConfigs: array expected"; + for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify(message.modelDeploymentMonitoringObjectiveConfigs[i]); + if (error) + return "modelDeploymentMonitoringObjectiveConfigs." + error; + } + } + if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify(message.modelDeploymentMonitoringScheduleConfig); if (error) - return "trainingPredictionSkewDetectionConfig." + error; + return "modelDeploymentMonitoringScheduleConfig." + error; } - if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify(message.predictionDriftDetectionConfig); + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { + var error = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.verify(message.loggingSamplingStrategy); if (error) - return "predictionDriftDetectionConfig." + error; + return "loggingSamplingStrategy." + error; } - if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify(message.explanationConfig); + if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify(message.modelMonitoringAlertConfig); if (error) - return "explanationConfig." + error; + return "modelMonitoringAlertConfig." + error; + } + if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) + if (!$util.isString(message.predictInstanceSchemaUri)) + return "predictInstanceSchemaUri: string expected"; + if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) { + var error = $root.google.protobuf.Value.verify(message.samplePredictInstance); + if (error) + return "samplePredictInstance." + error; + } + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + if (!$util.isString(message.analysisInstanceSchemaUri)) + return "analysisInstanceSchemaUri: string expected"; + if (message.bigqueryTables != null && message.hasOwnProperty("bigqueryTables")) { + if (!Array.isArray(message.bigqueryTables)) + return "bigqueryTables: array expected"; + for (var i = 0; i < message.bigqueryTables.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify(message.bigqueryTables[i]); + if (error) + return "bigqueryTables." + error; + } + } + if (message.logTtl != null && message.hasOwnProperty("logTtl")) { + var error = $root.google.protobuf.Duration.verify(message.logTtl); + if (error) + return "logTtl." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.nextScheduleTime); + if (error) + return "nextScheduleTime." + error; + } + if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) { + var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.statsAnomaliesBaseDirectory); + if (error) + return "statsAnomaliesBaseDirectory." + error; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) + if (typeof message.enableMonitoringPipelineLogs !== "boolean") + return "enableMonitoringPipelineLogs: boolean expected"; + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; } return null; }; /** - * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob */ - ModelMonitoringObjectiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) + ModelDeploymentMonitoringJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig(); - if (object.trainingDataset != null) { - if (typeof object.trainingDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.trainingDataset: object expected"); - message.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.fromObject(object.trainingDataset); - } - if (object.trainingPredictionSkewDetectionConfig != null) { - if (typeof object.trainingPredictionSkewDetectionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.trainingPredictionSkewDetectionConfig: object expected"); - message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.fromObject(object.trainingPredictionSkewDetectionConfig); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + switch (object.state) { + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; } - if (object.predictionDriftDetectionConfig != null) { - if (typeof object.predictionDriftDetectionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.predictionDriftDetectionConfig: object expected"); - message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.fromObject(object.predictionDriftDetectionConfig); + switch (object.scheduleState) { + case "MONITORING_SCHEDULE_STATE_UNSPECIFIED": + case 0: + message.scheduleState = 0; + break; + case "PENDING": + case 1: + message.scheduleState = 1; + break; + case "OFFLINE": + case 2: + message.scheduleState = 2; + break; + case "RUNNING": + case 3: + message.scheduleState = 3; + break; } - if (object.explanationConfig != null) { - if (typeof object.explanationConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.explanationConfig: object expected"); - message.explanationConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.fromObject(object.explanationConfig); + if (object.latestMonitoringPipelineMetadata != null) { + if (typeof object.latestMonitoringPipelineMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.latestMonitoringPipelineMetadata: object expected"); + message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.fromObject(object.latestMonitoringPipelineMetadata); + } + if (object.modelDeploymentMonitoringObjectiveConfigs) { + if (!Array.isArray(object.modelDeploymentMonitoringObjectiveConfigs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: array expected"); + message.modelDeploymentMonitoringObjectiveConfigs = []; + for (var i = 0; i < object.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { + if (typeof object.modelDeploymentMonitoringObjectiveConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: object expected"); + message.modelDeploymentMonitoringObjectiveConfigs[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.fromObject(object.modelDeploymentMonitoringObjectiveConfigs[i]); + } + } + if (object.modelDeploymentMonitoringScheduleConfig != null) { + if (typeof object.modelDeploymentMonitoringScheduleConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringScheduleConfig: object expected"); + message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.fromObject(object.modelDeploymentMonitoringScheduleConfig); + } + if (object.loggingSamplingStrategy != null) { + if (typeof object.loggingSamplingStrategy !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.loggingSamplingStrategy: object expected"); + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); + } + if (object.modelMonitoringAlertConfig != null) { + if (typeof object.modelMonitoringAlertConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelMonitoringAlertConfig: object expected"); + message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.fromObject(object.modelMonitoringAlertConfig); + } + if (object.predictInstanceSchemaUri != null) + message.predictInstanceSchemaUri = String(object.predictInstanceSchemaUri); + if (object.samplePredictInstance != null) { + if (typeof object.samplePredictInstance !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.samplePredictInstance: object expected"); + message.samplePredictInstance = $root.google.protobuf.Value.fromObject(object.samplePredictInstance); + } + if (object.analysisInstanceSchemaUri != null) + message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); + if (object.bigqueryTables) { + if (!Array.isArray(object.bigqueryTables)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.bigqueryTables: array expected"); + message.bigqueryTables = []; + for (var i = 0; i < object.bigqueryTables.length; ++i) { + if (typeof object.bigqueryTables[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.bigqueryTables: object expected"); + message.bigqueryTables[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.fromObject(object.bigqueryTables[i]); + } + } + if (object.logTtl != null) { + if (typeof object.logTtl !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.logTtl: object expected"); + message.logTtl = $root.google.protobuf.Duration.fromObject(object.logTtl); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.nextScheduleTime != null) { + if (typeof object.nextScheduleTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.nextScheduleTime: object expected"); + message.nextScheduleTime = $root.google.protobuf.Timestamp.fromObject(object.nextScheduleTime); + } + if (object.statsAnomaliesBaseDirectory != null) { + if (typeof object.statsAnomaliesBaseDirectory !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.statsAnomaliesBaseDirectory: object expected"); + message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.statsAnomaliesBaseDirectory); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.enableMonitoringPipelineLogs != null) + message.enableMonitoringPipelineLogs = Boolean(object.enableMonitoringPipelineLogs); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); } return message; }; /** - * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringObjectiveConfig.toObject = function toObject(message, options) { + ModelDeploymentMonitoringJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.modelDeploymentMonitoringObjectiveConfigs = []; + object.bigqueryTables = []; + } + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.trainingDataset = null; - object.trainingPredictionSkewDetectionConfig = null; - object.predictionDriftDetectionConfig = null; - object.explanationConfig = null; + object.name = ""; + object.displayName = ""; + object.endpoint = ""; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.scheduleState = options.enums === String ? "MONITORING_SCHEDULE_STATE_UNSPECIFIED" : 0; + object.modelDeploymentMonitoringScheduleConfig = null; + object.loggingSamplingStrategy = null; + object.predictInstanceSchemaUri = ""; + object.createTime = null; + object.updateTime = null; + object.nextScheduleTime = null; + object.modelMonitoringAlertConfig = null; + object.analysisInstanceSchemaUri = ""; + object.logTtl = null; + object.samplePredictInstance = null; + object.statsAnomaliesBaseDirectory = null; + object.encryptionSpec = null; + object.enableMonitoringPipelineLogs = false; + object.error = null; + object.latestMonitoringPipelineMetadata = null; } - if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) - object.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.toObject(message.trainingDataset, options); - if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) - object.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.toObject(message.trainingPredictionSkewDetectionConfig, options); - if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) - object.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.toObject(message.predictionDriftDetectionConfig, options); - if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) - object.explanationConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.toObject(message.explanationConfig, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.JobState[message.state] : message.state; + if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) + object.scheduleState = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] : message.scheduleState; + if (message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length) { + object.modelDeploymentMonitoringObjectiveConfigs = []; + for (var j = 0; j < message.modelDeploymentMonitoringObjectiveConfigs.length; ++j) + object.modelDeploymentMonitoringObjectiveConfigs[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.toObject(message.modelDeploymentMonitoringObjectiveConfigs[j], options); + } + if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) + object.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.toObject(message.modelDeploymentMonitoringScheduleConfig, options); + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) + object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); + if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) + object.predictInstanceSchemaUri = message.predictInstanceSchemaUri; + if (message.bigqueryTables && message.bigqueryTables.length) { + object.bigqueryTables = []; + for (var j = 0; j < message.bigqueryTables.length; ++j) + object.bigqueryTables[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.toObject(message.bigqueryTables[j], options); + } + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) + object.nextScheduleTime = $root.google.protobuf.Timestamp.toObject(message.nextScheduleTime, options); + if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) + object.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.toObject(message.modelMonitoringAlertConfig, options); + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; + if (message.logTtl != null && message.hasOwnProperty("logTtl")) + object.logTtl = $root.google.protobuf.Duration.toObject(message.logTtl, options); + if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) + object.samplePredictInstance = $root.google.protobuf.Value.toObject(message.samplePredictInstance, options); + if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) + object.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.statsAnomaliesBaseDirectory, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) + object.enableMonitoringPipelineLogs = message.enableMonitoringPipelineLogs; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) + object.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); return object; }; /** - * Converts this ModelMonitoringObjectiveConfig to JSON. + * Converts this ModelDeploymentMonitoringJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @instance * @returns {Object.} JSON object */ - ModelMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + ModelDeploymentMonitoringJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelMonitoringObjectiveConfig + * Gets the default type url for ModelDeploymentMonitoringJob * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelDeploymentMonitoringJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob"; }; - ModelMonitoringObjectiveConfig.TrainingDataset = (function() { + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata = (function() { /** - * Properties of a TrainingDataset. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @interface ITrainingDataset - * @property {string|null} [dataset] TrainingDataset dataset - * @property {google.cloud.aiplatform.v1beta1.IGcsSource|null} [gcsSource] TrainingDataset gcsSource - * @property {google.cloud.aiplatform.v1beta1.IBigQuerySource|null} [bigquerySource] TrainingDataset bigquerySource - * @property {string|null} [dataFormat] TrainingDataset dataFormat - * @property {string|null} [targetField] TrainingDataset targetField - * @property {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null} [loggingSamplingStrategy] TrainingDataset loggingSamplingStrategy + * Properties of a LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @interface ILatestMonitoringPipelineMetadata + * @property {google.protobuf.ITimestamp|null} [runTime] LatestMonitoringPipelineMetadata runTime + * @property {google.rpc.IStatus|null} [status] LatestMonitoringPipelineMetadata status */ /** - * Constructs a new TrainingDataset. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @classdesc Represents a TrainingDataset. - * @implements ITrainingDataset + * Constructs a new LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @classdesc Represents a LatestMonitoringPipelineMetadata. + * @implements ILatestMonitoringPipelineMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set */ - function TrainingDataset(properties) { + function LatestMonitoringPipelineMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177679,159 +180486,89 @@ } /** - * TrainingDataset dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.dataset = null; - - /** - * TrainingDataset gcsSource. - * @member {google.cloud.aiplatform.v1beta1.IGcsSource|null|undefined} gcsSource - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.gcsSource = null; - - /** - * TrainingDataset bigquerySource. - * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigquerySource - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.bigquerySource = null; - - /** - * TrainingDataset dataFormat. - * @member {string} dataFormat - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.dataFormat = ""; - - /** - * TrainingDataset targetField. - * @member {string} targetField - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.targetField = ""; - - /** - * TrainingDataset loggingSamplingStrategy. - * @member {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null|undefined} loggingSamplingStrategy - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * LatestMonitoringPipelineMetadata runTime. + * @member {google.protobuf.ITimestamp|null|undefined} runTime + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @instance */ - TrainingDataset.prototype.loggingSamplingStrategy = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + LatestMonitoringPipelineMetadata.prototype.runTime = null; /** - * TrainingDataset dataSource. - * @member {"dataset"|"gcsSource"|"bigquerySource"|undefined} dataSource - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * LatestMonitoringPipelineMetadata status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @instance */ - Object.defineProperty(TrainingDataset.prototype, "dataSource", { - get: $util.oneOfGetter($oneOfFields = ["dataset", "gcsSource", "bigquerySource"]), - set: $util.oneOfSetter($oneOfFields) - }); + LatestMonitoringPipelineMetadata.prototype.status = null; /** - * Creates a new TrainingDataset instance using the specified properties. + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset instance + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata instance */ - TrainingDataset.create = function create(properties) { - return new TrainingDataset(properties); + LatestMonitoringPipelineMetadata.create = function create(properties) { + return new LatestMonitoringPipelineMetadata(properties); }; /** - * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingDataset.encode = function encode(message, writer) { + LatestMonitoringPipelineMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataFormat); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dataset); - if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) - $root.google.cloud.aiplatform.v1beta1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) - $root.google.cloud.aiplatform.v1beta1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.targetField != null && Object.hasOwnProperty.call(message, "targetField")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetField); - if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) - $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) + $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingDataset.encodeDelimited = function encodeDelimited(message, writer) { + LatestMonitoringPipelineMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainingDataset message from the specified reader or buffer. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingDataset.decode = function decode(reader, length) { + LatestMonitoringPipelineMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: { - message.dataset = reader.string(); - break; - } - case 4: { - message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.decode(reader, reader.uint32()); - break; - } - case 5: { - message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.decode(reader, reader.uint32()); + case 1: { + message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 2: { - message.dataFormat = reader.string(); - break; - } - case 6: { - message.targetField = reader.string(); - break; - } - case 7: { - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.decode(reader, reader.uint32()); + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } default: @@ -177843,431 +180580,3125 @@ }; /** - * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingDataset.decodeDelimited = function decodeDelimited(reader) { + LatestMonitoringPipelineMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainingDataset message. + * Verifies a LatestMonitoringPipelineMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainingDataset.verify = function verify(message) { + LatestMonitoringPipelineMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - properties.dataSource = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { - if (properties.dataSource === 1) - return "dataSource: multiple values"; - properties.dataSource = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.GcsSource.verify(message.gcsSource); - if (error) - return "gcsSource." + error; - } - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - if (properties.dataSource === 1) - return "dataSource: multiple values"; - properties.dataSource = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.verify(message.bigquerySource); - if (error) - return "bigquerySource." + error; - } + if (message.runTime != null && message.hasOwnProperty("runTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.runTime); + if (error) + return "runTime." + error; } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - if (!$util.isString(message.dataFormat)) - return "dataFormat: string expected"; - if (message.targetField != null && message.hasOwnProperty("targetField")) - if (!$util.isString(message.targetField)) - return "targetField: string expected"; - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { - var error = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.verify(message.loggingSamplingStrategy); + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); if (error) - return "loggingSamplingStrategy." + error; + return "status." + error; } return null; }; /** - * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata */ - TrainingDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset) + LatestMonitoringPipelineMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.gcsSource != null) { - if (typeof object.gcsSource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.gcsSource: object expected"); - message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.fromObject(object.gcsSource); - } - if (object.bigquerySource != null) { - if (typeof object.bigquerySource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.bigquerySource: object expected"); - message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.fromObject(object.bigquerySource); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); + if (object.runTime != null) { + if (typeof object.runTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.runTime: object expected"); + message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); } - if (object.dataFormat != null) - message.dataFormat = String(object.dataFormat); - if (object.targetField != null) - message.targetField = String(object.targetField); - if (object.loggingSamplingStrategy != null) { - if (typeof object.loggingSamplingStrategy !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.loggingSamplingStrategy: object expected"); - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); } return message; }; /** - * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} message TrainingDataset + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainingDataset.toObject = function toObject(message, options) { + LatestMonitoringPipelineMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.dataFormat = ""; - object.targetField = ""; - object.loggingSamplingStrategy = null; - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - object.dataFormat = message.dataFormat; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.dataSource = "dataset"; - } - if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { - object.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.toObject(message.gcsSource, options); - if (options.oneofs) - object.dataSource = "gcsSource"; - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - object.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.toObject(message.bigquerySource, options); - if (options.oneofs) - object.dataSource = "bigquerySource"; + object.runTime = null; + object.status = null; } - if (message.targetField != null && message.hasOwnProperty("targetField")) - object.targetField = message.targetField; - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) - object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); + if (message.runTime != null && message.hasOwnProperty("runTime")) + object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); return object; }; /** - * Converts this TrainingDataset to JSON. + * Converts this LatestMonitoringPipelineMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @instance * @returns {Object.} JSON object */ - TrainingDataset.prototype.toJSON = function toJSON() { + LatestMonitoringPipelineMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TrainingDataset + * Gets the default type url for LatestMonitoringPipelineMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TrainingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LatestMonitoringPipelineMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata"; }; - return TrainingDataset; + return LatestMonitoringPipelineMetadata; })(); - ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig = (function() { + /** + * MonitoringScheduleState enum. + * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + * @enum {number} + * @property {number} MONITORING_SCHEDULE_STATE_UNSPECIFIED=0 MONITORING_SCHEDULE_STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} OFFLINE=2 OFFLINE value + * @property {number} RUNNING=3 RUNNING value + */ + ModelDeploymentMonitoringJob.MonitoringScheduleState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MONITORING_SCHEDULE_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "OFFLINE"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + return values; + })(); - /** - * Properties of a TrainingPredictionSkewDetectionConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @interface ITrainingPredictionSkewDetectionConfig - * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds - * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds - * @property {google.cloud.aiplatform.v1beta1.IThresholdConfig|null} [defaultSkewThreshold] TrainingPredictionSkewDetectionConfig defaultSkewThreshold - */ + return ModelDeploymentMonitoringJob; + })(); - /** - * Constructs a new TrainingPredictionSkewDetectionConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @classdesc Represents a TrainingPredictionSkewDetectionConfig. - * @implements ITrainingPredictionSkewDetectionConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set - */ - function TrainingPredictionSkewDetectionConfig(properties) { - this.skewThresholds = {}; - this.attributionScoreSkewThresholds = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1beta1.ModelDeploymentMonitoringBigQueryTable = (function() { - /** - * TrainingPredictionSkewDetectionConfig skewThresholds. - * @member {Object.} skewThresholds - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.skewThresholds = $util.emptyObject; + /** + * Properties of a ModelDeploymentMonitoringBigQueryTable. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IModelDeploymentMonitoringBigQueryTable + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null} [logSource] ModelDeploymentMonitoringBigQueryTable logSource + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null} [logType] ModelDeploymentMonitoringBigQueryTable logType + * @property {string|null} [bigqueryTablePath] ModelDeploymentMonitoringBigQueryTable bigqueryTablePath + */ - /** - * TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. - * @member {Object.} attributionScoreSkewThresholds - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; + /** + * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ModelDeploymentMonitoringBigQueryTable. + * @implements IModelDeploymentMonitoringBigQueryTable + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + */ + function ModelDeploymentMonitoringBigQueryTable(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * TrainingPredictionSkewDetectionConfig defaultSkewThreshold. - * @member {google.cloud.aiplatform.v1beta1.IThresholdConfig|null|undefined} defaultSkewThreshold - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.defaultSkewThreshold = null; + /** + * ModelDeploymentMonitoringBigQueryTable logSource. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource} logSource + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.logSource = 0; - /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig instance - */ - TrainingPredictionSkewDetectionConfig.create = function create(properties) { - return new TrainingPredictionSkewDetectionConfig(properties); - }; + /** + * ModelDeploymentMonitoringBigQueryTable logType. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType} logType + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.logType = 0; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPredictionSkewDetectionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.skewThresholds != null && Object.hasOwnProperty.call(message, "skewThresholds")) - for (var keys = Object.keys(message.skewThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.skewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.attributionScoreSkewThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreSkewThresholds")) - for (var keys = Object.keys(message.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.attributionScoreSkewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.defaultSkewThreshold != null && Object.hasOwnProperty.call(message, "defaultSkewThreshold")) - $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.defaultSkewThreshold, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. + * @member {string} bigqueryTablePath + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPredictionSkewDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable instance + */ + ModelDeploymentMonitoringBigQueryTable.create = function create(properties) { + return new ModelDeploymentMonitoringBigQueryTable(properties); + }; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPredictionSkewDetectionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.skewThresholds === $util.emptyObject) - message.skewThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.skewThresholds[key] = value; - break; - } - case 2: { - if (message.attributionScoreSkewThresholds === $util.emptyObject) - message.attributionScoreSkewThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.attributionScoreSkewThresholds[key] = value; - break; - } - case 6: { - message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringBigQueryTable.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.logSource != null && Object.hasOwnProperty.call(message, "logSource")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logSource); + if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logType); + if (message.bigqueryTablePath != null && Object.hasOwnProperty.call(message, "bigqueryTablePath")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.bigqueryTablePath); + return writer; + }; + + /** + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringBigQueryTable.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringBigQueryTable.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.logSource = reader.int32(); + break; + } + case 2: { + message.logType = reader.int32(); + break; + } + case 3: { + message.bigqueryTablePath = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPredictionSkewDetectionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringBigQueryTable.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a TrainingPredictionSkewDetectionConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrainingPredictionSkewDetectionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.skewThresholds != null && message.hasOwnProperty("skewThresholds")) { - if (!$util.isObject(message.skewThresholds)) - return "skewThresholds: object expected"; - var key = Object.keys(message.skewThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.skewThresholds[key[i]]); - if (error) - return "skewThresholds." + error; - } - } - if (message.attributionScoreSkewThresholds != null && message.hasOwnProperty("attributionScoreSkewThresholds")) { - if (!$util.isObject(message.attributionScoreSkewThresholds)) - return "attributionScoreSkewThresholds: object expected"; - var key = Object.keys(message.attributionScoreSkewThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.attributionScoreSkewThresholds[key[i]]); - if (error) - return "attributionScoreSkewThresholds." + error; - } + /** + * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringBigQueryTable.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.logSource != null && message.hasOwnProperty("logSource")) + switch (message.logSource) { + default: + return "logSource: enum value expected"; + case 0: + case 1: + case 2: + break; } - if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) { - var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.defaultSkewThreshold); - if (error) - return "defaultSkewThreshold." + error; + if (message.logType != null && message.hasOwnProperty("logType")) + switch (message.logType) { + default: + return "logType: enum value expected"; + case 0: + case 1: + case 2: + break; } - return null; - }; + if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) + if (!$util.isString(message.bigqueryTablePath)) + return "bigqueryTablePath: string expected"; + return null; + }; - /** - * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - */ - TrainingPredictionSkewDetectionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(); - if (object.skewThresholds) { - if (typeof object.skewThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); - message.skewThresholds = {}; - for (var keys = Object.keys(object.skewThresholds), i = 0; i < keys.length; ++i) { + /** + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + */ + ModelDeploymentMonitoringBigQueryTable.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable(); + switch (object.logSource) { + case "LOG_SOURCE_UNSPECIFIED": + case 0: + message.logSource = 0; + break; + case "TRAINING": + case 1: + message.logSource = 1; + break; + case "SERVING": + case 2: + message.logSource = 2; + break; + } + switch (object.logType) { + case "LOG_TYPE_UNSPECIFIED": + case 0: + message.logType = 0; + break; + case "PREDICT": + case 1: + message.logType = 1; + break; + case "EXPLAIN": + case 2: + message.logType = 2; + break; + } + if (object.bigqueryTablePath != null) + message.bigqueryTablePath = String(object.bigqueryTablePath); + return message; + }; + + /** + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringBigQueryTable.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; + object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; + object.bigqueryTablePath = ""; + } + if (message.logSource != null && message.hasOwnProperty("logSource")) + object.logSource = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] : message.logSource; + if (message.logType != null && message.hasOwnProperty("logType")) + object.logType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] : message.logType; + if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) + object.bigqueryTablePath = message.bigqueryTablePath; + return object; + }; + + /** + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringBigQueryTable.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelDeploymentMonitoringBigQueryTable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable"; + }; + + /** + * LogSource enum. + * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource + * @enum {number} + * @property {number} LOG_SOURCE_UNSPECIFIED=0 LOG_SOURCE_UNSPECIFIED value + * @property {number} TRAINING=1 TRAINING value + * @property {number} SERVING=2 SERVING value + */ + ModelDeploymentMonitoringBigQueryTable.LogSource = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_SOURCE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TRAINING"] = 1; + values[valuesById[2] = "SERVING"] = 2; + return values; + })(); + + /** + * LogType enum. + * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType + * @enum {number} + * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value + * @property {number} PREDICT=1 PREDICT value + * @property {number} EXPLAIN=2 EXPLAIN value + */ + ModelDeploymentMonitoringBigQueryTable.LogType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PREDICT"] = 1; + values[valuesById[2] = "EXPLAIN"] = 2; + return values; + })(); + + return ModelDeploymentMonitoringBigQueryTable; + })(); + + v1beta1.ModelDeploymentMonitoringObjectiveConfig = (function() { + + /** + * Properties of a ModelDeploymentMonitoringObjectiveConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IModelDeploymentMonitoringObjectiveConfig + * @property {string|null} [deployedModelId] ModelDeploymentMonitoringObjectiveConfig deployedModelId + * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null} [objectiveConfig] ModelDeploymentMonitoringObjectiveConfig objectiveConfig + */ + + /** + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ModelDeploymentMonitoringObjectiveConfig. + * @implements IModelDeploymentMonitoringObjectiveConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + */ + function ModelDeploymentMonitoringObjectiveConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ModelDeploymentMonitoringObjectiveConfig deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @instance + */ + ModelDeploymentMonitoringObjectiveConfig.prototype.deployedModelId = ""; + + /** + * ModelDeploymentMonitoringObjectiveConfig objectiveConfig. + * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null|undefined} objectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @instance + */ + ModelDeploymentMonitoringObjectiveConfig.prototype.objectiveConfig = null; + + /** + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig instance + */ + ModelDeploymentMonitoringObjectiveConfig.create = function create(properties) { + return new ModelDeploymentMonitoringObjectiveConfig(properties); + }; + + /** + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringObjectiveConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deployedModelId); + if (message.objectiveConfig != null && Object.hasOwnProperty.call(message, "objectiveConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringObjectiveConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.deployedModelId = reader.string(); + break; + } + case 2: { + message.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringObjectiveConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfig); + if (error) + return "objectiveConfig." + error; + } + return null; + }; + + /** + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + */ + ModelDeploymentMonitoringObjectiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig(); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.objectiveConfig != null) { + if (typeof object.objectiveConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.objectiveConfig: object expected"); + message.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfig); + } + return message; + }; + + /** + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringObjectiveConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.deployedModelId = ""; + object.objectiveConfig = null; + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) + object.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfig, options); + return object; + }; + + /** + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelDeploymentMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig"; + }; + + return ModelDeploymentMonitoringObjectiveConfig; + })(); + + v1beta1.ModelDeploymentMonitoringScheduleConfig = (function() { + + /** + * Properties of a ModelDeploymentMonitoringScheduleConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IModelDeploymentMonitoringScheduleConfig + * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval + * @property {google.protobuf.IDuration|null} [monitorWindow] ModelDeploymentMonitoringScheduleConfig monitorWindow + */ + + /** + * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ModelDeploymentMonitoringScheduleConfig. + * @implements IModelDeploymentMonitoringScheduleConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + */ + function ModelDeploymentMonitoringScheduleConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ModelDeploymentMonitoringScheduleConfig monitorInterval. + * @member {google.protobuf.IDuration|null|undefined} monitorInterval + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @instance + */ + ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; + + /** + * ModelDeploymentMonitoringScheduleConfig monitorWindow. + * @member {google.protobuf.IDuration|null|undefined} monitorWindow + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @instance + */ + ModelDeploymentMonitoringScheduleConfig.prototype.monitorWindow = null; + + /** + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig instance + */ + ModelDeploymentMonitoringScheduleConfig.create = function create(properties) { + return new ModelDeploymentMonitoringScheduleConfig(properties); + }; + + /** + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringScheduleConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.monitorInterval != null && Object.hasOwnProperty.call(message, "monitorInterval")) + $root.google.protobuf.Duration.encode(message.monitorInterval, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.monitorWindow != null && Object.hasOwnProperty.call(message, "monitorWindow")) + $root.google.protobuf.Duration.encode(message.monitorWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringScheduleConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 2: { + message.monitorWindow = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringScheduleConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringScheduleConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) { + var error = $root.google.protobuf.Duration.verify(message.monitorInterval); + if (error) + return "monitorInterval." + error; + } + if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) { + var error = $root.google.protobuf.Duration.verify(message.monitorWindow); + if (error) + return "monitorWindow." + error; + } + return null; + }; + + /** + * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + */ + ModelDeploymentMonitoringScheduleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig(); + if (object.monitorInterval != null) { + if (typeof object.monitorInterval !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitorInterval: object expected"); + message.monitorInterval = $root.google.protobuf.Duration.fromObject(object.monitorInterval); + } + if (object.monitorWindow != null) { + if (typeof object.monitorWindow !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitorWindow: object expected"); + message.monitorWindow = $root.google.protobuf.Duration.fromObject(object.monitorWindow); + } + return message; + }; + + /** + * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringScheduleConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.monitorInterval = null; + object.monitorWindow = null; + } + if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) + object.monitorInterval = $root.google.protobuf.Duration.toObject(message.monitorInterval, options); + if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) + object.monitorWindow = $root.google.protobuf.Duration.toObject(message.monitorWindow, options); + return object; + }; + + /** + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringScheduleConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelDeploymentMonitoringScheduleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig"; + }; + + return ModelDeploymentMonitoringScheduleConfig; + })(); + + v1beta1.ModelMonitoringStatsAnomalies = (function() { + + /** + * Properties of a ModelMonitoringStatsAnomalies. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IModelMonitoringStatsAnomalies + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null} [objective] ModelMonitoringStatsAnomalies objective + * @property {string|null} [deployedModelId] ModelMonitoringStatsAnomalies deployedModelId + * @property {number|null} [anomalyCount] ModelMonitoringStatsAnomalies anomalyCount + * @property {Array.|null} [featureStats] ModelMonitoringStatsAnomalies featureStats + */ + + /** + * Constructs a new ModelMonitoringStatsAnomalies. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ModelMonitoringStatsAnomalies. + * @implements IModelMonitoringStatsAnomalies + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + */ + function ModelMonitoringStatsAnomalies(properties) { + this.featureStats = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ModelMonitoringStatsAnomalies objective. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} objective + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.objective = 0; + + /** + * ModelMonitoringStatsAnomalies deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.deployedModelId = ""; + + /** + * ModelMonitoringStatsAnomalies anomalyCount. + * @member {number} anomalyCount + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.anomalyCount = 0; + + /** + * ModelMonitoringStatsAnomalies featureStats. + * @member {Array.} featureStats + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.featureStats = $util.emptyArray; + + /** + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies instance + */ + ModelMonitoringStatsAnomalies.create = function create(properties) { + return new ModelMonitoringStatsAnomalies(properties); + }; + + /** + * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelMonitoringStatsAnomalies.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.objective != null && Object.hasOwnProperty.call(message, "objective")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objective); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.anomalyCount != null && Object.hasOwnProperty.call(message, "anomalyCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.anomalyCount); + if (message.featureStats != null && message.featureStats.length) + for (var i = 0; i < message.featureStats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.encode(message.featureStats[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelMonitoringStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelMonitoringStatsAnomalies.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.objective = reader.int32(); + break; + } + case 2: { + message.deployedModelId = reader.string(); + break; + } + case 3: { + message.anomalyCount = reader.int32(); + break; + } + case 4: { + if (!(message.featureStats && message.featureStats.length)) + message.featureStats = []; + message.featureStats.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelMonitoringStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelMonitoringStatsAnomalies message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelMonitoringStatsAnomalies.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.objective != null && message.hasOwnProperty("objective")) + switch (message.objective) { + default: + return "objective: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) + if (!$util.isInteger(message.anomalyCount)) + return "anomalyCount: integer expected"; + if (message.featureStats != null && message.hasOwnProperty("featureStats")) { + if (!Array.isArray(message.featureStats)) + return "featureStats: array expected"; + for (var i = 0; i < message.featureStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify(message.featureStats[i]); + if (error) + return "featureStats." + error; + } + } + return null; + }; + + /** + * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + */ + ModelMonitoringStatsAnomalies.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies(); + switch (object.objective) { + case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + case 0: + message.objective = 0; + break; + case "RAW_FEATURE_SKEW": + case 1: + message.objective = 1; + break; + case "RAW_FEATURE_DRIFT": + case 2: + message.objective = 2; + break; + case "FEATURE_ATTRIBUTION_SKEW": + case 3: + message.objective = 3; + break; + case "FEATURE_ATTRIBUTION_DRIFT": + case 4: + message.objective = 4; + break; + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.anomalyCount != null) + message.anomalyCount = object.anomalyCount | 0; + if (object.featureStats) { + if (!Array.isArray(object.featureStats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.featureStats: array expected"); + message.featureStats = []; + for (var i = 0; i < object.featureStats.length; ++i) { + if (typeof object.featureStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.featureStats: object expected"); + message.featureStats[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.fromObject(object.featureStats[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelMonitoringStatsAnomalies.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.featureStats = []; + if (options.defaults) { + object.objective = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; + object.deployedModelId = ""; + object.anomalyCount = 0; + } + if (message.objective != null && message.hasOwnProperty("objective")) + object.objective = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.objective] : message.objective; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) + object.anomalyCount = message.anomalyCount; + if (message.featureStats && message.featureStats.length) { + object.featureStats = []; + for (var j = 0; j < message.featureStats.length; ++j) + object.featureStats[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.toObject(message.featureStats[j], options); + } + return object; + }; + + /** + * Converts this ModelMonitoringStatsAnomalies to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @instance + * @returns {Object.} JSON object + */ + ModelMonitoringStatsAnomalies.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelMonitoringStatsAnomalies + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelMonitoringStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies"; + }; + + ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies = (function() { + + /** + * Properties of a FeatureHistoricStatsAnomalies. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @interface IFeatureHistoricStatsAnomalies + * @property {string|null} [featureDisplayName] FeatureHistoricStatsAnomalies featureDisplayName + * @property {google.cloud.aiplatform.v1beta1.IThresholdConfig|null} [threshold] FeatureHistoricStatsAnomalies threshold + * @property {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null} [trainingStats] FeatureHistoricStatsAnomalies trainingStats + * @property {Array.|null} [predictionStats] FeatureHistoricStatsAnomalies predictionStats + */ + + /** + * Constructs a new FeatureHistoricStatsAnomalies. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @classdesc Represents a FeatureHistoricStatsAnomalies. + * @implements IFeatureHistoricStatsAnomalies + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set + */ + function FeatureHistoricStatsAnomalies(properties) { + this.predictionStats = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FeatureHistoricStatsAnomalies featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.featureDisplayName = ""; + + /** + * FeatureHistoricStatsAnomalies threshold. + * @member {google.cloud.aiplatform.v1beta1.IThresholdConfig|null|undefined} threshold + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.threshold = null; + + /** + * FeatureHistoricStatsAnomalies trainingStats. + * @member {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null|undefined} trainingStats + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.trainingStats = null; + + /** + * FeatureHistoricStatsAnomalies predictionStats. + * @member {Array.} predictionStats + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.predictionStats = $util.emptyArray; + + /** + * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies instance + */ + FeatureHistoricStatsAnomalies.create = function create(properties) { + return new FeatureHistoricStatsAnomalies(properties); + }; + + /** + * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureHistoricStatsAnomalies.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureDisplayName); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.threshold, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingStats != null && Object.hasOwnProperty.call(message, "trainingStats")) + $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.encode(message.trainingStats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.predictionStats != null && message.predictionStats.length) + for (var i = 0; i < message.predictionStats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.encode(message.predictionStats[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureHistoricStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureHistoricStatsAnomalies.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.featureDisplayName = reader.string(); + break; + } + case 3: { + message.threshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); + break; + } + case 4: { + message.trainingStats = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32()); + break; + } + case 5: { + if (!(message.predictionStats && message.predictionStats.length)) + message.predictionStats = []; + message.predictionStats.push($root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureHistoricStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureHistoricStatsAnomalies message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureHistoricStatsAnomalies.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + if (!$util.isString(message.featureDisplayName)) + return "featureDisplayName: string expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) { + var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.threshold); + if (error) + return "threshold." + error; + } + if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify(message.trainingStats); + if (error) + return "trainingStats." + error; + } + if (message.predictionStats != null && message.hasOwnProperty("predictionStats")) { + if (!Array.isArray(message.predictionStats)) + return "predictionStats: array expected"; + for (var i = 0; i < message.predictionStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify(message.predictionStats[i]); + if (error) + return "predictionStats." + error; + } + } + return null; + }; + + /** + * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies + */ + FeatureHistoricStatsAnomalies.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); + if (object.featureDisplayName != null) + message.featureDisplayName = String(object.featureDisplayName); + if (object.threshold != null) { + if (typeof object.threshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.threshold: object expected"); + message.threshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.threshold); + } + if (object.trainingStats != null) { + if (typeof object.trainingStats !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.trainingStats: object expected"); + message.trainingStats = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.fromObject(object.trainingStats); + } + if (object.predictionStats) { + if (!Array.isArray(object.predictionStats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: array expected"); + message.predictionStats = []; + for (var i = 0; i < object.predictionStats.length; ++i) { + if (typeof object.predictionStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: object expected"); + message.predictionStats[i] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.fromObject(object.predictionStats[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureHistoricStatsAnomalies.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.predictionStats = []; + if (options.defaults) { + object.featureDisplayName = ""; + object.threshold = null; + object.trainingStats = null; + } + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + object.featureDisplayName = message.featureDisplayName; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.threshold, options); + if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) + object.trainingStats = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.toObject(message.trainingStats, options); + if (message.predictionStats && message.predictionStats.length) { + object.predictionStats = []; + for (var j = 0; j < message.predictionStats.length; ++j) + object.predictionStats[j] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.toObject(message.predictionStats[j], options); + } + return object; + }; + + /** + * Converts this FeatureHistoricStatsAnomalies to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + * @returns {Object.} JSON object + */ + FeatureHistoricStatsAnomalies.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureHistoricStatsAnomalies + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureHistoricStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies"; + }; + + return FeatureHistoricStatsAnomalies; + })(); + + return ModelMonitoringStatsAnomalies; + })(); + + v1beta1.FeatureStatsAnomaly = (function() { + + /** + * Properties of a FeatureStatsAnomaly. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IFeatureStatsAnomaly + * @property {number|null} [score] FeatureStatsAnomaly score + * @property {string|null} [statsUri] FeatureStatsAnomaly statsUri + * @property {string|null} [anomalyUri] FeatureStatsAnomaly anomalyUri + * @property {number|null} [distributionDeviation] FeatureStatsAnomaly distributionDeviation + * @property {number|null} [anomalyDetectionThreshold] FeatureStatsAnomaly anomalyDetectionThreshold + * @property {google.protobuf.ITimestamp|null} [startTime] FeatureStatsAnomaly startTime + * @property {google.protobuf.ITimestamp|null} [endTime] FeatureStatsAnomaly endTime + */ + + /** + * Constructs a new FeatureStatsAnomaly. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a FeatureStatsAnomaly. + * @implements IFeatureStatsAnomaly + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly=} [properties] Properties to set + */ + function FeatureStatsAnomaly(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FeatureStatsAnomaly score. + * @member {number} score + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @instance + */ + FeatureStatsAnomaly.prototype.score = 0; + + /** + * FeatureStatsAnomaly statsUri. + * @member {string} statsUri + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @instance + */ + FeatureStatsAnomaly.prototype.statsUri = ""; + + /** + * FeatureStatsAnomaly anomalyUri. + * @member {string} anomalyUri + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @instance + */ + FeatureStatsAnomaly.prototype.anomalyUri = ""; + + /** + * FeatureStatsAnomaly distributionDeviation. + * @member {number} distributionDeviation + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @instance + */ + FeatureStatsAnomaly.prototype.distributionDeviation = 0; + + /** + * FeatureStatsAnomaly anomalyDetectionThreshold. + * @member {number} anomalyDetectionThreshold + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @instance + */ + FeatureStatsAnomaly.prototype.anomalyDetectionThreshold = 0; + + /** + * FeatureStatsAnomaly startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @instance + */ + FeatureStatsAnomaly.prototype.startTime = null; + + /** + * FeatureStatsAnomaly endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @instance + */ + FeatureStatsAnomaly.prototype.endTime = null; + + /** + * Creates a new FeatureStatsAnomaly instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly instance + */ + FeatureStatsAnomaly.create = function create(properties) { + return new FeatureStatsAnomaly(properties); + }; + + /** + * Encodes the specified FeatureStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly} message FeatureStatsAnomaly message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureStatsAnomaly.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.score); + if (message.statsUri != null && Object.hasOwnProperty.call(message, "statsUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.statsUri); + if (message.anomalyUri != null && Object.hasOwnProperty.call(message, "anomalyUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.anomalyUri); + if (message.distributionDeviation != null && Object.hasOwnProperty.call(message, "distributionDeviation")) + writer.uint32(/* id 5, wireType 1 =*/41).double(message.distributionDeviation); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.anomalyDetectionThreshold != null && Object.hasOwnProperty.call(message, "anomalyDetectionThreshold")) + writer.uint32(/* id 9, wireType 1 =*/73).double(message.anomalyDetectionThreshold); + return writer; + }; + + /** + * Encodes the specified FeatureStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly} message FeatureStatsAnomaly message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureStatsAnomaly.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureStatsAnomaly message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureStatsAnomaly.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.double(); + break; + } + case 3: { + message.statsUri = reader.string(); + break; + } + case 4: { + message.anomalyUri = reader.string(); + break; + } + case 5: { + message.distributionDeviation = reader.double(); + break; + } + case 9: { + message.anomalyDetectionThreshold = reader.double(); + break; + } + case 7: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureStatsAnomaly message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureStatsAnomaly.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureStatsAnomaly message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureStatsAnomaly.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.score != null && message.hasOwnProperty("score")) + if (typeof message.score !== "number") + return "score: number expected"; + if (message.statsUri != null && message.hasOwnProperty("statsUri")) + if (!$util.isString(message.statsUri)) + return "statsUri: string expected"; + if (message.anomalyUri != null && message.hasOwnProperty("anomalyUri")) + if (!$util.isString(message.anomalyUri)) + return "anomalyUri: string expected"; + if (message.distributionDeviation != null && message.hasOwnProperty("distributionDeviation")) + if (typeof message.distributionDeviation !== "number") + return "distributionDeviation: number expected"; + if (message.anomalyDetectionThreshold != null && message.hasOwnProperty("anomalyDetectionThreshold")) + if (typeof message.anomalyDetectionThreshold !== "number") + return "anomalyDetectionThreshold: number expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + return null; + }; + + /** + * Creates a FeatureStatsAnomaly message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly + */ + FeatureStatsAnomaly.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly(); + if (object.score != null) + message.score = Number(object.score); + if (object.statsUri != null) + message.statsUri = String(object.statsUri); + if (object.anomalyUri != null) + message.anomalyUri = String(object.anomalyUri); + if (object.distributionDeviation != null) + message.distributionDeviation = Number(object.distributionDeviation); + if (object.anomalyDetectionThreshold != null) + message.anomalyDetectionThreshold = Number(object.anomalyDetectionThreshold); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from a FeatureStatsAnomaly message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} message FeatureStatsAnomaly + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureStatsAnomaly.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.score = 0; + object.statsUri = ""; + object.anomalyUri = ""; + object.distributionDeviation = 0; + object.startTime = null; + object.endTime = null; + object.anomalyDetectionThreshold = 0; + } + if (message.score != null && message.hasOwnProperty("score")) + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (message.statsUri != null && message.hasOwnProperty("statsUri")) + object.statsUri = message.statsUri; + if (message.anomalyUri != null && message.hasOwnProperty("anomalyUri")) + object.anomalyUri = message.anomalyUri; + if (message.distributionDeviation != null && message.hasOwnProperty("distributionDeviation")) + object.distributionDeviation = options.json && !isFinite(message.distributionDeviation) ? String(message.distributionDeviation) : message.distributionDeviation; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.anomalyDetectionThreshold != null && message.hasOwnProperty("anomalyDetectionThreshold")) + object.anomalyDetectionThreshold = options.json && !isFinite(message.anomalyDetectionThreshold) ? String(message.anomalyDetectionThreshold) : message.anomalyDetectionThreshold; + return object; + }; + + /** + * Converts this FeatureStatsAnomaly to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @instance + * @returns {Object.} JSON object + */ + FeatureStatsAnomaly.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureStatsAnomaly + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureStatsAnomaly.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly"; + }; + + return FeatureStatsAnomaly; + })(); + + v1beta1.ModelMonitoringConfig = (function() { + + /** + * Properties of a ModelMonitoringConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IModelMonitoringConfig + * @property {Array.|null} [objectiveConfigs] ModelMonitoringConfig objectiveConfigs + * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null} [alertConfig] ModelMonitoringConfig alertConfig + * @property {string|null} [analysisInstanceSchemaUri] ModelMonitoringConfig analysisInstanceSchemaUri + * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [statsAnomaliesBaseDirectory] ModelMonitoringConfig statsAnomaliesBaseDirectory + */ + + /** + * Constructs a new ModelMonitoringConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ModelMonitoringConfig. + * @implements IModelMonitoringConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig=} [properties] Properties to set + */ + function ModelMonitoringConfig(properties) { + this.objectiveConfigs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ModelMonitoringConfig objectiveConfigs. + * @member {Array.} objectiveConfigs + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @instance + */ + ModelMonitoringConfig.prototype.objectiveConfigs = $util.emptyArray; + + /** + * ModelMonitoringConfig alertConfig. + * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null|undefined} alertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @instance + */ + ModelMonitoringConfig.prototype.alertConfig = null; + + /** + * ModelMonitoringConfig analysisInstanceSchemaUri. + * @member {string} analysisInstanceSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @instance + */ + ModelMonitoringConfig.prototype.analysisInstanceSchemaUri = ""; + + /** + * ModelMonitoringConfig statsAnomaliesBaseDirectory. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @instance + */ + ModelMonitoringConfig.prototype.statsAnomaliesBaseDirectory = null; + + /** + * Creates a new ModelMonitoringConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} ModelMonitoringConfig instance + */ + ModelMonitoringConfig.create = function create(properties) { + return new ModelMonitoringConfig(properties); + }; + + /** + * Encodes the specified ModelMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig} message ModelMonitoringConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelMonitoringConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.alertConfig != null && Object.hasOwnProperty.call(message, "alertConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.encode(message.alertConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.objectiveConfigs != null && message.objectiveConfigs.length) + for (var i = 0; i < message.objectiveConfigs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.analysisInstanceSchemaUri); + if (message.statsAnomaliesBaseDirectory != null && Object.hasOwnProperty.call(message, "statsAnomaliesBaseDirectory")) + $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.statsAnomaliesBaseDirectory, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ModelMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig} message ModelMonitoringConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelMonitoringConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelMonitoringConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} ModelMonitoringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelMonitoringConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + if (!(message.objectiveConfigs && message.objectiveConfigs.length)) + message.objectiveConfigs = []; + message.objectiveConfigs.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32())); + break; + } + case 2: { + message.alertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); + break; + } + case 4: { + message.analysisInstanceSchemaUri = reader.string(); + break; + } + case 5: { + message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModelMonitoringConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} ModelMonitoringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelMonitoringConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelMonitoringConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelMonitoringConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.objectiveConfigs != null && message.hasOwnProperty("objectiveConfigs")) { + if (!Array.isArray(message.objectiveConfigs)) + return "objectiveConfigs: array expected"; + for (var i = 0; i < message.objectiveConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfigs[i]); + if (error) + return "objectiveConfigs." + error; + } + } + if (message.alertConfig != null && message.hasOwnProperty("alertConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify(message.alertConfig); + if (error) + return "alertConfig." + error; + } + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + if (!$util.isString(message.analysisInstanceSchemaUri)) + return "analysisInstanceSchemaUri: string expected"; + if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) { + var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.statsAnomaliesBaseDirectory); + if (error) + return "statsAnomaliesBaseDirectory." + error; + } + return null; + }; + + /** + * Creates a ModelMonitoringConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} ModelMonitoringConfig + */ + ModelMonitoringConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig(); + if (object.objectiveConfigs) { + if (!Array.isArray(object.objectiveConfigs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.objectiveConfigs: array expected"); + message.objectiveConfigs = []; + for (var i = 0; i < object.objectiveConfigs.length; ++i) { + if (typeof object.objectiveConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.objectiveConfigs: object expected"); + message.objectiveConfigs[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfigs[i]); + } + } + if (object.alertConfig != null) { + if (typeof object.alertConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.alertConfig: object expected"); + message.alertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.fromObject(object.alertConfig); + } + if (object.analysisInstanceSchemaUri != null) + message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); + if (object.statsAnomaliesBaseDirectory != null) { + if (typeof object.statsAnomaliesBaseDirectory !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.statsAnomaliesBaseDirectory: object expected"); + message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.statsAnomaliesBaseDirectory); + } + return message; + }; + + /** + * Creates a plain object from a ModelMonitoringConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} message ModelMonitoringConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelMonitoringConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.objectiveConfigs = []; + if (options.defaults) { + object.alertConfig = null; + object.analysisInstanceSchemaUri = ""; + object.statsAnomaliesBaseDirectory = null; + } + if (message.alertConfig != null && message.hasOwnProperty("alertConfig")) + object.alertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.toObject(message.alertConfig, options); + if (message.objectiveConfigs && message.objectiveConfigs.length) { + object.objectiveConfigs = []; + for (var j = 0; j < message.objectiveConfigs.length; ++j) + object.objectiveConfigs[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfigs[j], options); + } + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; + if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) + object.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.statsAnomaliesBaseDirectory, options); + return object; + }; + + /** + * Converts this ModelMonitoringConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @instance + * @returns {Object.} JSON object + */ + ModelMonitoringConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelMonitoringConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelMonitoringConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelMonitoringConfig"; + }; + + return ModelMonitoringConfig; + })(); + + v1beta1.ModelMonitoringObjectiveConfig = (function() { + + /** + * Properties of a ModelMonitoringObjectiveConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IModelMonitoringObjectiveConfig + * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null} [trainingDataset] ModelMonitoringObjectiveConfig trainingDataset + * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null} [trainingPredictionSkewDetectionConfig] ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig + * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null} [predictionDriftDetectionConfig] ModelMonitoringObjectiveConfig predictionDriftDetectionConfig + * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null} [explanationConfig] ModelMonitoringObjectiveConfig explanationConfig + */ + + /** + * Constructs a new ModelMonitoringObjectiveConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ModelMonitoringObjectiveConfig. + * @implements IModelMonitoringObjectiveConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + */ + function ModelMonitoringObjectiveConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ModelMonitoringObjectiveConfig trainingDataset. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null|undefined} trainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @instance + */ + ModelMonitoringObjectiveConfig.prototype.trainingDataset = null; + + /** + * ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null|undefined} trainingPredictionSkewDetectionConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @instance + */ + ModelMonitoringObjectiveConfig.prototype.trainingPredictionSkewDetectionConfig = null; + + /** + * ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null|undefined} predictionDriftDetectionConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @instance + */ + ModelMonitoringObjectiveConfig.prototype.predictionDriftDetectionConfig = null; + + /** + * ModelMonitoringObjectiveConfig explanationConfig. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null|undefined} explanationConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @instance + */ + ModelMonitoringObjectiveConfig.prototype.explanationConfig = null; + + /** + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig instance + */ + ModelMonitoringObjectiveConfig.create = function create(properties) { + return new ModelMonitoringObjectiveConfig(properties); + }; + + /** + * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelMonitoringObjectiveConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainingDataset != null && Object.hasOwnProperty.call(message, "trainingDataset")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.encode(message.trainingDataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trainingPredictionSkewDetectionConfig != null && Object.hasOwnProperty.call(message, "trainingPredictionSkewDetectionConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.encode(message.trainingPredictionSkewDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.predictionDriftDetectionConfig != null && Object.hasOwnProperty.call(message, "predictionDriftDetectionConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.encode(message.predictionDriftDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.explanationConfig != null && Object.hasOwnProperty.call(message, "explanationConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.encode(message.explanationConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelMonitoringObjectiveConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.decode(reader, reader.uint32()); + break; + } + case 2: { + message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.decode(reader, reader.uint32()); + break; + } + case 5: { + message.explanationConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelMonitoringObjectiveConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelMonitoringObjectiveConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify(message.trainingDataset); + if (error) + return "trainingDataset." + error; + } + if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify(message.trainingPredictionSkewDetectionConfig); + if (error) + return "trainingPredictionSkewDetectionConfig." + error; + } + if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify(message.predictionDriftDetectionConfig); + if (error) + return "predictionDriftDetectionConfig." + error; + } + if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify(message.explanationConfig); + if (error) + return "explanationConfig." + error; + } + return null; + }; + + /** + * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + */ + ModelMonitoringObjectiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig(); + if (object.trainingDataset != null) { + if (typeof object.trainingDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.trainingDataset: object expected"); + message.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.fromObject(object.trainingDataset); + } + if (object.trainingPredictionSkewDetectionConfig != null) { + if (typeof object.trainingPredictionSkewDetectionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.trainingPredictionSkewDetectionConfig: object expected"); + message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.fromObject(object.trainingPredictionSkewDetectionConfig); + } + if (object.predictionDriftDetectionConfig != null) { + if (typeof object.predictionDriftDetectionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.predictionDriftDetectionConfig: object expected"); + message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.fromObject(object.predictionDriftDetectionConfig); + } + if (object.explanationConfig != null) { + if (typeof object.explanationConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.explanationConfig: object expected"); + message.explanationConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.fromObject(object.explanationConfig); + } + return message; + }; + + /** + * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelMonitoringObjectiveConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainingDataset = null; + object.trainingPredictionSkewDetectionConfig = null; + object.predictionDriftDetectionConfig = null; + object.explanationConfig = null; + } + if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) + object.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.toObject(message.trainingDataset, options); + if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) + object.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.toObject(message.trainingPredictionSkewDetectionConfig, options); + if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) + object.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.toObject(message.predictionDriftDetectionConfig, options); + if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) + object.explanationConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.toObject(message.explanationConfig, options); + return object; + }; + + /** + * Converts this ModelMonitoringObjectiveConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @instance + * @returns {Object.} JSON object + */ + ModelMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelMonitoringObjectiveConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig"; + }; + + ModelMonitoringObjectiveConfig.TrainingDataset = (function() { + + /** + * Properties of a TrainingDataset. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @interface ITrainingDataset + * @property {string|null} [dataset] TrainingDataset dataset + * @property {google.cloud.aiplatform.v1beta1.IGcsSource|null} [gcsSource] TrainingDataset gcsSource + * @property {google.cloud.aiplatform.v1beta1.IBigQuerySource|null} [bigquerySource] TrainingDataset bigquerySource + * @property {string|null} [dataFormat] TrainingDataset dataFormat + * @property {string|null} [targetField] TrainingDataset targetField + * @property {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null} [loggingSamplingStrategy] TrainingDataset loggingSamplingStrategy + */ + + /** + * Constructs a new TrainingDataset. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @classdesc Represents a TrainingDataset. + * @implements ITrainingDataset + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set + */ + function TrainingDataset(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TrainingDataset dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.dataset = null; + + /** + * TrainingDataset gcsSource. + * @member {google.cloud.aiplatform.v1beta1.IGcsSource|null|undefined} gcsSource + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.gcsSource = null; + + /** + * TrainingDataset bigquerySource. + * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigquerySource + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.bigquerySource = null; + + /** + * TrainingDataset dataFormat. + * @member {string} dataFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.dataFormat = ""; + + /** + * TrainingDataset targetField. + * @member {string} targetField + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.targetField = ""; + + /** + * TrainingDataset loggingSamplingStrategy. + * @member {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null|undefined} loggingSamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.loggingSamplingStrategy = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TrainingDataset dataSource. + * @member {"dataset"|"gcsSource"|"bigquerySource"|undefined} dataSource + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + Object.defineProperty(TrainingDataset.prototype, "dataSource", { + get: $util.oneOfGetter($oneOfFields = ["dataset", "gcsSource", "bigquerySource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TrainingDataset instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset instance + */ + TrainingDataset.create = function create(properties) { + return new TrainingDataset(properties); + }; + + /** + * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingDataset.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataFormat); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dataset); + if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) + $root.google.cloud.aiplatform.v1beta1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) + $root.google.cloud.aiplatform.v1beta1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.targetField != null && Object.hasOwnProperty.call(message, "targetField")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetField); + if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) + $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingDataset.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TrainingDataset message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingDataset.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.dataset = reader.string(); + break; + } + case 4: { + message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.decode(reader, reader.uint32()); + break; + } + case 5: { + message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.decode(reader, reader.uint32()); + break; + } + case 2: { + message.dataFormat = reader.string(); + break; + } + case 6: { + message.targetField = reader.string(); + break; + } + case 7: { + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingDataset.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TrainingDataset message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainingDataset.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + properties.dataSource = 1; + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + } + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GcsSource.verify(message.gcsSource); + if (error) + return "gcsSource." + error; + } + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.verify(message.bigquerySource); + if (error) + return "bigquerySource." + error; + } + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + if (!$util.isString(message.dataFormat)) + return "dataFormat: string expected"; + if (message.targetField != null && message.hasOwnProperty("targetField")) + if (!$util.isString(message.targetField)) + return "targetField: string expected"; + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { + var error = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.verify(message.loggingSamplingStrategy); + if (error) + return "loggingSamplingStrategy." + error; + } + return null; + }; + + /** + * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + */ + TrainingDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.gcsSource != null) { + if (typeof object.gcsSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.gcsSource: object expected"); + message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.fromObject(object.gcsSource); + } + if (object.bigquerySource != null) { + if (typeof object.bigquerySource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.bigquerySource: object expected"); + message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.fromObject(object.bigquerySource); + } + if (object.dataFormat != null) + message.dataFormat = String(object.dataFormat); + if (object.targetField != null) + message.targetField = String(object.targetField); + if (object.loggingSamplingStrategy != null) { + if (typeof object.loggingSamplingStrategy !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.loggingSamplingStrategy: object expected"); + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); + } + return message; + }; + + /** + * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} message TrainingDataset + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainingDataset.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataFormat = ""; + object.targetField = ""; + object.loggingSamplingStrategy = null; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = message.dataFormat; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.dataSource = "dataset"; + } + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + object.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.toObject(message.gcsSource, options); + if (options.oneofs) + object.dataSource = "gcsSource"; + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + object.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.toObject(message.bigquerySource, options); + if (options.oneofs) + object.dataSource = "bigquerySource"; + } + if (message.targetField != null && message.hasOwnProperty("targetField")) + object.targetField = message.targetField; + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) + object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); + return object; + }; + + /** + * Converts this TrainingDataset to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + * @returns {Object.} JSON object + */ + TrainingDataset.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TrainingDataset + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrainingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset"; + }; + + return TrainingDataset; + })(); + + ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig = (function() { + + /** + * Properties of a TrainingPredictionSkewDetectionConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @interface ITrainingPredictionSkewDetectionConfig + * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds + * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds + * @property {google.cloud.aiplatform.v1beta1.IThresholdConfig|null} [defaultSkewThreshold] TrainingPredictionSkewDetectionConfig defaultSkewThreshold + */ + + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @classdesc Represents a TrainingPredictionSkewDetectionConfig. + * @implements ITrainingPredictionSkewDetectionConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set + */ + function TrainingPredictionSkewDetectionConfig(properties) { + this.skewThresholds = {}; + this.attributionScoreSkewThresholds = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TrainingPredictionSkewDetectionConfig skewThresholds. + * @member {Object.} skewThresholds + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.skewThresholds = $util.emptyObject; + + /** + * TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. + * @member {Object.} attributionScoreSkewThresholds + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; + + /** + * TrainingPredictionSkewDetectionConfig defaultSkewThreshold. + * @member {google.cloud.aiplatform.v1beta1.IThresholdConfig|null|undefined} defaultSkewThreshold + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.defaultSkewThreshold = null; + + /** + * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig instance + */ + TrainingPredictionSkewDetectionConfig.create = function create(properties) { + return new TrainingPredictionSkewDetectionConfig(properties); + }; + + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPredictionSkewDetectionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.skewThresholds != null && Object.hasOwnProperty.call(message, "skewThresholds")) + for (var keys = Object.keys(message.skewThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.skewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.attributionScoreSkewThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreSkewThresholds")) + for (var keys = Object.keys(message.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.attributionScoreSkewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.defaultSkewThreshold != null && Object.hasOwnProperty.call(message, "defaultSkewThreshold")) + $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.defaultSkewThreshold, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPredictionSkewDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPredictionSkewDetectionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.skewThresholds === $util.emptyObject) + message.skewThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.skewThresholds[key] = value; + break; + } + case 2: { + if (message.attributionScoreSkewThresholds === $util.emptyObject) + message.attributionScoreSkewThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.attributionScoreSkewThresholds[key] = value; + break; + } + case 6: { + message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPredictionSkewDetectionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TrainingPredictionSkewDetectionConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainingPredictionSkewDetectionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.skewThresholds != null && message.hasOwnProperty("skewThresholds")) { + if (!$util.isObject(message.skewThresholds)) + return "skewThresholds: object expected"; + var key = Object.keys(message.skewThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.skewThresholds[key[i]]); + if (error) + return "skewThresholds." + error; + } + } + if (message.attributionScoreSkewThresholds != null && message.hasOwnProperty("attributionScoreSkewThresholds")) { + if (!$util.isObject(message.attributionScoreSkewThresholds)) + return "attributionScoreSkewThresholds: object expected"; + var key = Object.keys(message.attributionScoreSkewThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.attributionScoreSkewThresholds[key[i]]); + if (error) + return "attributionScoreSkewThresholds." + error; + } + } + if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) { + var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.defaultSkewThreshold); + if (error) + return "defaultSkewThreshold." + error; + } + return null; + }; + + /** + * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + */ + TrainingPredictionSkewDetectionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(); + if (object.skewThresholds) { + if (typeof object.skewThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); + message.skewThresholds = {}; + for (var keys = Object.keys(object.skewThresholds), i = 0; i < keys.length; ++i) { if (typeof object.skewThresholds[keys[i]] !== "object") throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); message.skewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.skewThresholds[keys[i]]); @@ -206438,358 +211869,6 @@ return Feature; })(); - v1beta1.FeatureStatsAnomaly = (function() { - - /** - * Properties of a FeatureStatsAnomaly. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFeatureStatsAnomaly - * @property {number|null} [score] FeatureStatsAnomaly score - * @property {string|null} [statsUri] FeatureStatsAnomaly statsUri - * @property {string|null} [anomalyUri] FeatureStatsAnomaly anomalyUri - * @property {number|null} [distributionDeviation] FeatureStatsAnomaly distributionDeviation - * @property {number|null} [anomalyDetectionThreshold] FeatureStatsAnomaly anomalyDetectionThreshold - * @property {google.protobuf.ITimestamp|null} [startTime] FeatureStatsAnomaly startTime - * @property {google.protobuf.ITimestamp|null} [endTime] FeatureStatsAnomaly endTime - */ - - /** - * Constructs a new FeatureStatsAnomaly. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeatureStatsAnomaly. - * @implements IFeatureStatsAnomaly - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly=} [properties] Properties to set - */ - function FeatureStatsAnomaly(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeatureStatsAnomaly score. - * @member {number} score - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.score = 0; - - /** - * FeatureStatsAnomaly statsUri. - * @member {string} statsUri - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.statsUri = ""; - - /** - * FeatureStatsAnomaly anomalyUri. - * @member {string} anomalyUri - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.anomalyUri = ""; - - /** - * FeatureStatsAnomaly distributionDeviation. - * @member {number} distributionDeviation - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.distributionDeviation = 0; - - /** - * FeatureStatsAnomaly anomalyDetectionThreshold. - * @member {number} anomalyDetectionThreshold - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.anomalyDetectionThreshold = 0; - - /** - * FeatureStatsAnomaly startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.startTime = null; - - /** - * FeatureStatsAnomaly endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.endTime = null; - - /** - * Creates a new FeatureStatsAnomaly instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly instance - */ - FeatureStatsAnomaly.create = function create(properties) { - return new FeatureStatsAnomaly(properties); - }; - - /** - * Encodes the specified FeatureStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly} message FeatureStatsAnomaly message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureStatsAnomaly.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.score != null && Object.hasOwnProperty.call(message, "score")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.score); - if (message.statsUri != null && Object.hasOwnProperty.call(message, "statsUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.statsUri); - if (message.anomalyUri != null && Object.hasOwnProperty.call(message, "anomalyUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.anomalyUri); - if (message.distributionDeviation != null && Object.hasOwnProperty.call(message, "distributionDeviation")) - writer.uint32(/* id 5, wireType 1 =*/41).double(message.distributionDeviation); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.anomalyDetectionThreshold != null && Object.hasOwnProperty.call(message, "anomalyDetectionThreshold")) - writer.uint32(/* id 9, wireType 1 =*/73).double(message.anomalyDetectionThreshold); - return writer; - }; - - /** - * Encodes the specified FeatureStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly} message FeatureStatsAnomaly message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureStatsAnomaly.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeatureStatsAnomaly message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureStatsAnomaly.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.score = reader.double(); - break; - } - case 3: { - message.statsUri = reader.string(); - break; - } - case 4: { - message.anomalyUri = reader.string(); - break; - } - case 5: { - message.distributionDeviation = reader.double(); - break; - } - case 9: { - message.anomalyDetectionThreshold = reader.double(); - break; - } - case 7: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FeatureStatsAnomaly message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureStatsAnomaly.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeatureStatsAnomaly message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureStatsAnomaly.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.score != null && message.hasOwnProperty("score")) - if (typeof message.score !== "number") - return "score: number expected"; - if (message.statsUri != null && message.hasOwnProperty("statsUri")) - if (!$util.isString(message.statsUri)) - return "statsUri: string expected"; - if (message.anomalyUri != null && message.hasOwnProperty("anomalyUri")) - if (!$util.isString(message.anomalyUri)) - return "anomalyUri: string expected"; - if (message.distributionDeviation != null && message.hasOwnProperty("distributionDeviation")) - if (typeof message.distributionDeviation !== "number") - return "distributionDeviation: number expected"; - if (message.anomalyDetectionThreshold != null && message.hasOwnProperty("anomalyDetectionThreshold")) - if (typeof message.anomalyDetectionThreshold !== "number") - return "anomalyDetectionThreshold: number expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - return null; - }; - - /** - * Creates a FeatureStatsAnomaly message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly - */ - FeatureStatsAnomaly.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly(); - if (object.score != null) - message.score = Number(object.score); - if (object.statsUri != null) - message.statsUri = String(object.statsUri); - if (object.anomalyUri != null) - message.anomalyUri = String(object.anomalyUri); - if (object.distributionDeviation != null) - message.distributionDeviation = Number(object.distributionDeviation); - if (object.anomalyDetectionThreshold != null) - message.anomalyDetectionThreshold = Number(object.anomalyDetectionThreshold); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - return message; - }; - - /** - * Creates a plain object from a FeatureStatsAnomaly message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} message FeatureStatsAnomaly - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureStatsAnomaly.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.score = 0; - object.statsUri = ""; - object.anomalyUri = ""; - object.distributionDeviation = 0; - object.startTime = null; - object.endTime = null; - object.anomalyDetectionThreshold = 0; - } - if (message.score != null && message.hasOwnProperty("score")) - object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; - if (message.statsUri != null && message.hasOwnProperty("statsUri")) - object.statsUri = message.statsUri; - if (message.anomalyUri != null && message.hasOwnProperty("anomalyUri")) - object.anomalyUri = message.anomalyUri; - if (message.distributionDeviation != null && message.hasOwnProperty("distributionDeviation")) - object.distributionDeviation = options.json && !isFinite(message.distributionDeviation) ? String(message.distributionDeviation) : message.distributionDeviation; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.anomalyDetectionThreshold != null && message.hasOwnProperty("anomalyDetectionThreshold")) - object.anomalyDetectionThreshold = options.json && !isFinite(message.anomalyDetectionThreshold) ? String(message.anomalyDetectionThreshold) : message.anomalyDetectionThreshold; - return object; - }; - - /** - * Converts this FeatureStatsAnomaly to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - * @returns {Object.} JSON object - */ - FeatureStatsAnomaly.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FeatureStatsAnomaly - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureStatsAnomaly.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly"; - }; - - return FeatureStatsAnomaly; - })(); - v1beta1.IdMatcher = (function() { /** @@ -231127,6 +236206,8 @@ * @property {Object.|null} [labels] Index labels * @property {google.protobuf.ITimestamp|null} [createTime] Index createTime * @property {google.protobuf.ITimestamp|null} [updateTime] Index updateTime + * @property {google.cloud.aiplatform.v1beta1.IIndexStats|null} [indexStats] Index indexStats + * @property {google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|null} [indexUpdateMethod] Index indexUpdateMethod */ /** @@ -231226,6 +236307,22 @@ */ Index.prototype.updateTime = null; + /** + * Index indexStats. + * @member {google.cloud.aiplatform.v1beta1.IIndexStats|null|undefined} indexStats + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.indexStats = null; + + /** + * Index indexUpdateMethod. + * @member {google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod} indexUpdateMethod + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.indexUpdateMethod = 0; + /** * Creates a new Index instance using the specified properties. * @function create @@ -231272,6 +236369,10 @@ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.indexStats != null && Object.hasOwnProperty.call(message, "indexStats")) + $root.google.cloud.aiplatform.v1beta1.IndexStats.encode(message.indexStats, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.indexUpdateMethod != null && Object.hasOwnProperty.call(message, "indexUpdateMethod")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.indexUpdateMethod); return writer; }; @@ -231367,6 +236468,14 @@ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } + case 14: { + message.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.decode(reader, reader.uint32()); + break; + } + case 16: { + message.indexUpdateMethod = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -231449,6 +236558,20 @@ if (error) return "updateTime." + error; } + if (message.indexStats != null && message.hasOwnProperty("indexStats")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexStats.verify(message.indexStats); + if (error) + return "indexStats." + error; + } + if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) + switch (message.indexUpdateMethod) { + default: + return "indexUpdateMethod: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -231506,6 +236629,25 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.Index.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } + if (object.indexStats != null) { + if (typeof object.indexStats !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.indexStats: object expected"); + message.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.fromObject(object.indexStats); + } + switch (object.indexUpdateMethod) { + case "INDEX_UPDATE_METHOD_UNSPECIFIED": + case 0: + message.indexUpdateMethod = 0; + break; + case "BATCH_UPDATE": + case 1: + message.indexUpdateMethod = 1; + break; + case "STREAM_UPDATE": + case 2: + message.indexUpdateMethod = 2; + break; + } return message; }; @@ -231535,6 +236677,8 @@ object.etag = ""; object.createTime = null; object.updateTime = null; + object.indexStats = null; + object.indexUpdateMethod = options.enums === String ? "INDEX_UPDATE_METHOD_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -231563,6 +236707,10 @@ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.indexStats != null && message.hasOwnProperty("indexStats")) + object.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.toObject(message.indexStats, options); + if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) + object.indexUpdateMethod = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod[message.indexUpdateMethod] : message.indexUpdateMethod; return object; }; @@ -231592,9 +236740,1077 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Index"; }; + /** + * IndexUpdateMethod enum. + * @name google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod + * @enum {number} + * @property {number} INDEX_UPDATE_METHOD_UNSPECIFIED=0 INDEX_UPDATE_METHOD_UNSPECIFIED value + * @property {number} BATCH_UPDATE=1 BATCH_UPDATE value + * @property {number} STREAM_UPDATE=2 STREAM_UPDATE value + */ + Index.IndexUpdateMethod = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDEX_UPDATE_METHOD_UNSPECIFIED"] = 0; + values[valuesById[1] = "BATCH_UPDATE"] = 1; + values[valuesById[2] = "STREAM_UPDATE"] = 2; + return values; + })(); + return Index; })(); + v1beta1.IndexDatapoint = (function() { + + /** + * Properties of an IndexDatapoint. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IIndexDatapoint + * @property {string|null} [datapointId] IndexDatapoint datapointId + * @property {Array.|null} [featureVector] IndexDatapoint featureVector + * @property {Array.|null} [restricts] IndexDatapoint restricts + * @property {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null} [crowdingTag] IndexDatapoint crowdingTag + */ + + /** + * Constructs a new IndexDatapoint. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexDatapoint. + * @implements IIndexDatapoint + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint=} [properties] Properties to set + */ + function IndexDatapoint(properties) { + this.featureVector = []; + this.restricts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IndexDatapoint datapointId. + * @member {string} datapointId + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.datapointId = ""; + + /** + * IndexDatapoint featureVector. + * @member {Array.} featureVector + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.featureVector = $util.emptyArray; + + /** + * IndexDatapoint restricts. + * @member {Array.} restricts + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.restricts = $util.emptyArray; + + /** + * IndexDatapoint crowdingTag. + * @member {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null|undefined} crowdingTag + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.crowdingTag = null; + + /** + * Creates a new IndexDatapoint instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint instance + */ + IndexDatapoint.create = function create(properties) { + return new IndexDatapoint(properties); + }; + + /** + * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexDatapoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datapointId != null && Object.hasOwnProperty.call(message, "datapointId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datapointId); + if (message.featureVector != null && message.featureVector.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.featureVector.length; ++i) + writer.float(message.featureVector[i]); + writer.ldelim(); + } + if (message.restricts != null && message.restricts.length) + for (var i = 0; i < message.restricts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.encode(message.restricts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.crowdingTag != null && Object.hasOwnProperty.call(message, "crowdingTag")) + $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.encode(message.crowdingTag, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexDatapoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexDatapoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.datapointId = reader.string(); + break; + } + case 2: { + if (!(message.featureVector && message.featureVector.length)) + message.featureVector = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.featureVector.push(reader.float()); + } else + message.featureVector.push(reader.float()); + break; + } + case 4: { + if (!(message.restricts && message.restricts.length)) + message.restricts = []; + message.restricts.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.decode(reader, reader.uint32())); + break; + } + case 5: { + message.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexDatapoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexDatapoint message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexDatapoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datapointId != null && message.hasOwnProperty("datapointId")) + if (!$util.isString(message.datapointId)) + return "datapointId: string expected"; + if (message.featureVector != null && message.hasOwnProperty("featureVector")) { + if (!Array.isArray(message.featureVector)) + return "featureVector: array expected"; + for (var i = 0; i < message.featureVector.length; ++i) + if (typeof message.featureVector[i] !== "number") + return "featureVector: number[] expected"; + } + if (message.restricts != null && message.hasOwnProperty("restricts")) { + if (!Array.isArray(message.restricts)) + return "restricts: array expected"; + for (var i = 0; i < message.restricts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify(message.restricts[i]); + if (error) + return "restricts." + error; + } + } + if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify(message.crowdingTag); + if (error) + return "crowdingTag." + error; + } + return null; + }; + + /** + * Creates an IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + */ + IndexDatapoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint(); + if (object.datapointId != null) + message.datapointId = String(object.datapointId); + if (object.featureVector) { + if (!Array.isArray(object.featureVector)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.featureVector: array expected"); + message.featureVector = []; + for (var i = 0; i < object.featureVector.length; ++i) + message.featureVector[i] = Number(object.featureVector[i]); + } + if (object.restricts) { + if (!Array.isArray(object.restricts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.restricts: array expected"); + message.restricts = []; + for (var i = 0; i < object.restricts.length; ++i) { + if (typeof object.restricts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.restricts: object expected"); + message.restricts[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.fromObject(object.restricts[i]); + } + } + if (object.crowdingTag != null) { + if (typeof object.crowdingTag !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.crowdingTag: object expected"); + message.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.fromObject(object.crowdingTag); + } + return message; + }; + + /** + * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint} message IndexDatapoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexDatapoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.featureVector = []; + object.restricts = []; + } + if (options.defaults) { + object.datapointId = ""; + object.crowdingTag = null; + } + if (message.datapointId != null && message.hasOwnProperty("datapointId")) + object.datapointId = message.datapointId; + if (message.featureVector && message.featureVector.length) { + object.featureVector = []; + for (var j = 0; j < message.featureVector.length; ++j) + object.featureVector[j] = options.json && !isFinite(message.featureVector[j]) ? String(message.featureVector[j]) : message.featureVector[j]; + } + if (message.restricts && message.restricts.length) { + object.restricts = []; + for (var j = 0; j < message.restricts.length; ++j) + object.restricts[j] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.toObject(message.restricts[j], options); + } + if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) + object.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.toObject(message.crowdingTag, options); + return object; + }; + + /** + * Converts this IndexDatapoint to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + * @returns {Object.} JSON object + */ + IndexDatapoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexDatapoint + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexDatapoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint"; + }; + + IndexDatapoint.Restriction = (function() { + + /** + * Properties of a Restriction. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @interface IRestriction + * @property {string|null} [namespace] Restriction namespace + * @property {Array.|null} [allowList] Restriction allowList + * @property {Array.|null} [denyList] Restriction denyList + */ + + /** + * Constructs a new Restriction. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @classdesc Represents a Restriction. + * @implements IRestriction + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction=} [properties] Properties to set + */ + function Restriction(properties) { + this.allowList = []; + this.denyList = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Restriction namespace. + * @member {string} namespace + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.namespace = ""; + + /** + * Restriction allowList. + * @member {Array.} allowList + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.allowList = $util.emptyArray; + + /** + * Restriction denyList. + * @member {Array.} denyList + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.denyList = $util.emptyArray; + + /** + * Creates a new Restriction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction instance + */ + Restriction.create = function create(properties) { + return new Restriction(properties); + }; + + /** + * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Restriction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.namespace != null && Object.hasOwnProperty.call(message, "namespace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespace); + if (message.allowList != null && message.allowList.length) + for (var i = 0; i < message.allowList.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowList[i]); + if (message.denyList != null && message.denyList.length) + for (var i = 0; i < message.denyList.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.denyList[i]); + return writer; + }; + + /** + * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Restriction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Restriction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Restriction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namespace = reader.string(); + break; + } + case 2: { + if (!(message.allowList && message.allowList.length)) + message.allowList = []; + message.allowList.push(reader.string()); + break; + } + case 3: { + if (!(message.denyList && message.denyList.length)) + message.denyList = []; + message.denyList.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Restriction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Restriction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Restriction message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Restriction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + if (message.allowList != null && message.hasOwnProperty("allowList")) { + if (!Array.isArray(message.allowList)) + return "allowList: array expected"; + for (var i = 0; i < message.allowList.length; ++i) + if (!$util.isString(message.allowList[i])) + return "allowList: string[] expected"; + } + if (message.denyList != null && message.hasOwnProperty("denyList")) { + if (!Array.isArray(message.denyList)) + return "denyList: array expected"; + for (var i = 0; i < message.denyList.length; ++i) + if (!$util.isString(message.denyList[i])) + return "denyList: string[] expected"; + } + return null; + }; + + /** + * Creates a Restriction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction + */ + Restriction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction(); + if (object.namespace != null) + message.namespace = String(object.namespace); + if (object.allowList) { + if (!Array.isArray(object.allowList)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.allowList: array expected"); + message.allowList = []; + for (var i = 0; i < object.allowList.length; ++i) + message.allowList[i] = String(object.allowList[i]); + } + if (object.denyList) { + if (!Array.isArray(object.denyList)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.denyList: array expected"); + message.denyList = []; + for (var i = 0; i < object.denyList.length; ++i) + message.denyList[i] = String(object.denyList[i]); + } + return message; + }; + + /** + * Creates a plain object from a Restriction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} message Restriction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Restriction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.allowList = []; + object.denyList = []; + } + if (options.defaults) + object.namespace = ""; + if (message.namespace != null && message.hasOwnProperty("namespace")) + object.namespace = message.namespace; + if (message.allowList && message.allowList.length) { + object.allowList = []; + for (var j = 0; j < message.allowList.length; ++j) + object.allowList[j] = message.allowList[j]; + } + if (message.denyList && message.denyList.length) { + object.denyList = []; + for (var j = 0; j < message.denyList.length; ++j) + object.denyList[j] = message.denyList[j]; + } + return object; + }; + + /** + * Converts this Restriction to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @instance + * @returns {Object.} JSON object + */ + Restriction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Restriction + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Restriction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction"; + }; + + return Restriction; + })(); + + IndexDatapoint.CrowdingTag = (function() { + + /** + * Properties of a CrowdingTag. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @interface ICrowdingTag + * @property {string|null} [crowdingAttribute] CrowdingTag crowdingAttribute + */ + + /** + * Constructs a new CrowdingTag. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @classdesc Represents a CrowdingTag. + * @implements ICrowdingTag + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set + */ + function CrowdingTag(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CrowdingTag crowdingAttribute. + * @member {string} crowdingAttribute + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @instance + */ + CrowdingTag.prototype.crowdingAttribute = ""; + + /** + * Creates a new CrowdingTag instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag instance + */ + CrowdingTag.create = function create(properties) { + return new CrowdingTag(properties); + }; + + /** + * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CrowdingTag.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.crowdingAttribute != null && Object.hasOwnProperty.call(message, "crowdingAttribute")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.crowdingAttribute); + return writer; + }; + + /** + * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CrowdingTag.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CrowdingTag.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.crowdingAttribute = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CrowdingTag.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CrowdingTag message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CrowdingTag.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) + if (!$util.isString(message.crowdingAttribute)) + return "crowdingAttribute: string expected"; + return null; + }; + + /** + * Creates a CrowdingTag message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag + */ + CrowdingTag.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag(); + if (object.crowdingAttribute != null) + message.crowdingAttribute = String(object.crowdingAttribute); + return message; + }; + + /** + * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} message CrowdingTag + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CrowdingTag.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.crowdingAttribute = ""; + if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) + object.crowdingAttribute = message.crowdingAttribute; + return object; + }; + + /** + * Converts this CrowdingTag to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @instance + * @returns {Object.} JSON object + */ + CrowdingTag.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CrowdingTag + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CrowdingTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag"; + }; + + return CrowdingTag; + })(); + + return IndexDatapoint; + })(); + + v1beta1.IndexStats = (function() { + + /** + * Properties of an IndexStats. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IIndexStats + * @property {number|Long|null} [vectorsCount] IndexStats vectorsCount + * @property {number|null} [shardsCount] IndexStats shardsCount + */ + + /** + * Constructs a new IndexStats. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexStats. + * @implements IIndexStats + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IIndexStats=} [properties] Properties to set + */ + function IndexStats(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IndexStats vectorsCount. + * @member {number|Long} vectorsCount + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @instance + */ + IndexStats.prototype.vectorsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * IndexStats shardsCount. + * @member {number} shardsCount + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @instance + */ + IndexStats.prototype.shardsCount = 0; + + /** + * Creates a new IndexStats instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexStats=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats instance + */ + IndexStats.create = function create(properties) { + return new IndexStats(properties); + }; + + /** + * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexStats} message IndexStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexStats.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vectorsCount != null && Object.hasOwnProperty.call(message, "vectorsCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.vectorsCount); + if (message.shardsCount != null && Object.hasOwnProperty.call(message, "shardsCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.shardsCount); + return writer; + }; + + /** + * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexStats} message IndexStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexStats.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexStats message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexStats.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexStats(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.vectorsCount = reader.int64(); + break; + } + case 2: { + message.shardsCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexStats.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexStats message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexStats.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) + if (!$util.isInteger(message.vectorsCount) && !(message.vectorsCount && $util.isInteger(message.vectorsCount.low) && $util.isInteger(message.vectorsCount.high))) + return "vectorsCount: integer|Long expected"; + if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) + if (!$util.isInteger(message.shardsCount)) + return "shardsCount: integer expected"; + return null; + }; + + /** + * Creates an IndexStats message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + */ + IndexStats.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexStats) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexStats(); + if (object.vectorsCount != null) + if ($util.Long) + (message.vectorsCount = $util.Long.fromValue(object.vectorsCount)).unsigned = false; + else if (typeof object.vectorsCount === "string") + message.vectorsCount = parseInt(object.vectorsCount, 10); + else if (typeof object.vectorsCount === "number") + message.vectorsCount = object.vectorsCount; + else if (typeof object.vectorsCount === "object") + message.vectorsCount = new $util.LongBits(object.vectorsCount.low >>> 0, object.vectorsCount.high >>> 0).toNumber(); + if (object.shardsCount != null) + message.shardsCount = object.shardsCount | 0; + return message; + }; + + /** + * Creates a plain object from an IndexStats message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexStats} message IndexStats + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexStats.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.vectorsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.vectorsCount = options.longs === String ? "0" : 0; + object.shardsCount = 0; + } + if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) + if (typeof message.vectorsCount === "number") + object.vectorsCount = options.longs === String ? String(message.vectorsCount) : message.vectorsCount; + else + object.vectorsCount = options.longs === String ? $util.Long.prototype.toString.call(message.vectorsCount) : options.longs === Number ? new $util.LongBits(message.vectorsCount.low >>> 0, message.vectorsCount.high >>> 0).toNumber() : message.vectorsCount; + if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) + object.shardsCount = message.shardsCount; + return object; + }; + + /** + * Converts this IndexStats to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @instance + * @returns {Object.} JSON object + */ + IndexStats.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexStats + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexStats"; + }; + + return IndexStats; + })(); + v1beta1.IndexEndpoint = (function() { /** @@ -237354,6 +243570,72 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|upsertDatapoints}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef UpsertDatapointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} [response] UpsertDatapointsResponse + */ + + /** + * Calls UpsertDatapoints. + * @function upsertDatapoints + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapointsCallback} callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.upsertDatapoints = function upsertDatapoints(request, callback) { + return this.rpcCall(upsertDatapoints, $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest, $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse, request, callback); + }, "name", { value: "UpsertDatapoints" }); + + /** + * Calls UpsertDatapoints. + * @function upsertDatapoints + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|removeDatapoints}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef RemoveDatapointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} [response] RemoveDatapointsResponse + */ + + /** + * Calls RemoveDatapoints. + * @function removeDatapoints + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapointsCallback} callback Node-style callback called with the error, if any, and RemoveDatapointsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.removeDatapoints = function removeDatapoints(request, callback) { + return this.rpcCall(removeDatapoints, $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest, $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse, request, callback); + }, "name", { value: "RemoveDatapoints" }); + + /** + * Calls RemoveDatapoints. + * @function removeDatapoints + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return IndexService; })(); @@ -238890,40 +245172,907 @@ /** * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateIndexOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + case 2: { + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateIndexOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateIndexOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); + if (error) + return "nearestNeighborSearchOperationMetadata." + error; + } + return null; + }; + + /** + * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + */ + UpdateIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.nearestNeighborSearchOperationMetadata != null) { + if (typeof object.nearestNeighborSearchOperationMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); + } + return message; + }; + + /** + * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} message UpdateIndexOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateIndexOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.genericMetadata = null; + object.nearestNeighborSearchOperationMetadata = null; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) + object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); + return object; + }; + + /** + * Converts this UpdateIndexOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + UpdateIndexOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateIndexOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata"; + }; + + return UpdateIndexOperationMetadata; + })(); + + v1beta1.DeleteIndexRequest = (function() { + + /** + * Properties of a DeleteIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteIndexRequest + * @property {string|null} [name] DeleteIndexRequest name + */ + + /** + * Constructs a new DeleteIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteIndexRequest. + * @implements IDeleteIndexRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set + */ + function DeleteIndexRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteIndexRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @instance + */ + DeleteIndexRequest.prototype.name = ""; + + /** + * Creates a new DeleteIndexRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest instance + */ + DeleteIndexRequest.create = function create(properties) { + return new DeleteIndexRequest(properties); + }; + + /** + * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteIndexRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteIndexRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteIndexRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteIndexRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteIndexRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteIndexRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + */ + DeleteIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} message DeleteIndexRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteIndexRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteIndexRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteIndexRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteIndexRequest"; + }; + + return DeleteIndexRequest; + })(); + + v1beta1.UpsertDatapointsRequest = (function() { + + /** + * Properties of an UpsertDatapointsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUpsertDatapointsRequest + * @property {string|null} [index] UpsertDatapointsRequest index + * @property {Array.|null} [datapoints] UpsertDatapointsRequest datapoints + */ + + /** + * Constructs a new UpsertDatapointsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UpsertDatapointsRequest. + * @implements IUpsertDatapointsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest=} [properties] Properties to set + */ + function UpsertDatapointsRequest(properties) { + this.datapoints = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpsertDatapointsRequest index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @instance + */ + UpsertDatapointsRequest.prototype.index = ""; + + /** + * UpsertDatapointsRequest datapoints. + * @member {Array.} datapoints + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @instance + */ + UpsertDatapointsRequest.prototype.datapoints = $util.emptyArray; + + /** + * Creates a new UpsertDatapointsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest instance + */ + UpsertDatapointsRequest.create = function create(properties) { + return new UpsertDatapointsRequest(properties); + }; + + /** + * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpsertDatapointsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); + if (message.datapoints != null && message.datapoints.length) + for (var i = 0; i < message.datapoints.length; ++i) + $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.encode(message.datapoints[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpsertDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpsertDatapointsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.index = reader.string(); + break; + } + case 2: { + if (!(message.datapoints && message.datapoints.length)) + message.datapoints = []; + message.datapoints.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpsertDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpsertDatapointsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpsertDatapointsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.datapoints != null && message.hasOwnProperty("datapoints")) { + if (!Array.isArray(message.datapoints)) + return "datapoints: array expected"; + for (var i = 0; i < message.datapoints.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.verify(message.datapoints[i]); + if (error) + return "datapoints." + error; + } + } + return null; + }; + + /** + * Creates an UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest + */ + UpsertDatapointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest(); + if (object.index != null) + message.index = String(object.index); + if (object.datapoints) { + if (!Array.isArray(object.datapoints)) + throw TypeError(".google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.datapoints: array expected"); + message.datapoints = []; + for (var i = 0; i < object.datapoints.length; ++i) { + if (typeof object.datapoints[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.datapoints: object expected"); + message.datapoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.fromObject(object.datapoints[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} message UpsertDatapointsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpsertDatapointsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.datapoints = []; + if (options.defaults) + object.index = ""; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.datapoints && message.datapoints.length) { + object.datapoints = []; + for (var j = 0; j < message.datapoints.length; ++j) + object.datapoints[j] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.toObject(message.datapoints[j], options); + } + return object; + }; + + /** + * Converts this UpsertDatapointsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @instance + * @returns {Object.} JSON object + */ + UpsertDatapointsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpsertDatapointsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpsertDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest"; + }; + + return UpsertDatapointsRequest; + })(); + + v1beta1.UpsertDatapointsResponse = (function() { + + /** + * Properties of an UpsertDatapointsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUpsertDatapointsResponse + */ + + /** + * Constructs a new UpsertDatapointsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UpsertDatapointsResponse. + * @implements IUpsertDatapointsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse=} [properties] Properties to set + */ + function UpsertDatapointsResponse(properties) { + if (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 UpsertDatapointsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse instance + */ + UpsertDatapointsResponse.create = function create(properties) { + return new UpsertDatapointsResponse(properties); + }; + + /** + * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpsertDatapointsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpsertDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpsertDatapointsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpsertDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpsertDatapointsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpsertDatapointsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse + */ + UpsertDatapointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse) + return object; + return new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse(); + }; + + /** + * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} message UpsertDatapointsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpsertDatapointsResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this UpsertDatapointsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @instance + * @returns {Object.} JSON object + */ + UpsertDatapointsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpsertDatapointsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpsertDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse"; + }; + + return UpsertDatapointsResponse; + })(); + + v1beta1.RemoveDatapointsRequest = (function() { + + /** + * Properties of a RemoveDatapointsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IRemoveDatapointsRequest + * @property {string|null} [index] RemoveDatapointsRequest index + * @property {Array.|null} [datapointIds] RemoveDatapointsRequest datapointIds + */ + + /** + * Constructs a new RemoveDatapointsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a RemoveDatapointsRequest. + * @implements IRemoveDatapointsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest=} [properties] Properties to set + */ + function RemoveDatapointsRequest(properties) { + this.datapointIds = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RemoveDatapointsRequest index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @instance + */ + RemoveDatapointsRequest.prototype.index = ""; + + /** + * RemoveDatapointsRequest datapointIds. + * @member {Array.} datapointIds + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @instance + */ + RemoveDatapointsRequest.prototype.datapointIds = $util.emptyArray; + + /** + * Creates a new RemoveDatapointsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest instance + */ + RemoveDatapointsRequest.create = function create(properties) { + return new RemoveDatapointsRequest(properties); + }; + + /** + * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveDatapointsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); + if (message.datapointIds != null && message.datapointIds.length) + for (var i = 0; i < message.datapointIds.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datapointIds[i]); + return writer; + }; + + /** + * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + RemoveDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexOperationMetadata.decode = function decode(reader, length) { + RemoveDatapointsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.index = reader.string(); break; } case 2: { - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + if (!(message.datapointIds && message.datapointIds.length)) + message.datapointIds = []; + message.datapointIds.push(reader.string()); break; } default: @@ -238935,141 +246084,142 @@ }; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + RemoveDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIndexOperationMetadata message. + * Verifies a RemoveDatapointsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIndexOperationMetadata.verify = function verify(message) { + RemoveDatapointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); - if (error) - return "nearestNeighborSearchOperationMetadata." + error; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.datapointIds != null && message.hasOwnProperty("datapointIds")) { + if (!Array.isArray(message.datapointIds)) + return "datapointIds: array expected"; + for (var i = 0; i < message.datapointIds.length; ++i) + if (!$util.isString(message.datapointIds[i])) + return "datapointIds: string[] expected"; } return null; }; /** - * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest */ - UpdateIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) + RemoveDatapointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.nearestNeighborSearchOperationMetadata != null) { - if (typeof object.nearestNeighborSearchOperationMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest(); + if (object.index != null) + message.index = String(object.index); + if (object.datapointIds) { + if (!Array.isArray(object.datapointIds)) + throw TypeError(".google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.datapointIds: array expected"); + message.datapointIds = []; + for (var i = 0; i < object.datapointIds.length; ++i) + message.datapointIds[i] = String(object.datapointIds[i]); } return message; }; /** - * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} message UpdateIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} message RemoveDatapointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexOperationMetadata.toObject = function toObject(message, options) { + RemoveDatapointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.nearestNeighborSearchOperationMetadata = null; + if (options.arrays || options.defaults) + object.datapointIds = []; + if (options.defaults) + object.index = ""; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.datapointIds && message.datapointIds.length) { + object.datapointIds = []; + for (var j = 0; j < message.datapointIds.length; ++j) + object.datapointIds[j] = message.datapointIds[j]; } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) - object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); return object; }; /** - * Converts this UpdateIndexOperationMetadata to JSON. + * Converts this RemoveDatapointsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @instance * @returns {Object.} JSON object */ - UpdateIndexOperationMetadata.prototype.toJSON = function toJSON() { + RemoveDatapointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateIndexOperationMetadata + * Gets the default type url for RemoveDatapointsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest"; }; - return UpdateIndexOperationMetadata; + return RemoveDatapointsRequest; })(); - v1beta1.DeleteIndexRequest = (function() { + v1beta1.RemoveDatapointsResponse = (function() { /** - * Properties of a DeleteIndexRequest. + * Properties of a RemoveDatapointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteIndexRequest - * @property {string|null} [name] DeleteIndexRequest name + * @interface IRemoveDatapointsResponse */ /** - * Constructs a new DeleteIndexRequest. + * Constructs a new RemoveDatapointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteIndexRequest. - * @implements IDeleteIndexRequest + * @classdesc Represents a RemoveDatapointsResponse. + * @implements IRemoveDatapointsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse=} [properties] Properties to set */ - function DeleteIndexRequest(properties) { + function RemoveDatapointsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -239077,77 +246227,63 @@ } /** - * DeleteIndexRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest - * @instance - */ - DeleteIndexRequest.prototype.name = ""; - - /** - * Creates a new DeleteIndexRequest instance using the specified properties. + * Creates a new RemoveDatapointsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse instance */ - DeleteIndexRequest.create = function create(properties) { - return new DeleteIndexRequest(properties); + RemoveDatapointsResponse.create = function create(properties) { + return new RemoveDatapointsResponse(properties); }; /** - * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexRequest.encode = function encode(message, writer) { + RemoveDatapointsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer. + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexRequest.decode = function decode(reader, length) { + RemoveDatapointsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -239157,102 +246293,89 @@ }; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexRequest.decodeDelimited = function decodeDelimited(reader) { + RemoveDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIndexRequest message. + * Verifies a RemoveDatapointsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIndexRequest.verify = function verify(message) { + RemoveDatapointsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; return null; }; /** - * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse */ - DeleteIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) + RemoveDatapointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); - if (object.name != null) - message.name = String(object.name); - return message; + return new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse(); }; /** - * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} message DeleteIndexRequest + * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} message RemoveDatapointsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; + RemoveDatapointsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this DeleteIndexRequest to JSON. + * Converts this RemoveDatapointsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @instance * @returns {Object.} JSON object */ - DeleteIndexRequest.prototype.toJSON = function toJSON() { + RemoveDatapointsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteIndexRequest + * Gets the default type url for RemoveDatapointsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse"; }; - return DeleteIndexRequest; + return RemoveDatapointsResponse; })(); v1beta1.NearestNeighborSearchOperationMetadata = (function() { @@ -239860,2719 +246983,1329 @@ * @property {number} INVALID_CSV_SYNTAX=3 INVALID_CSV_SYNTAX value * @property {number} INVALID_AVRO_SYNTAX=4 INVALID_AVRO_SYNTAX value * @property {number} INVALID_EMBEDDING_ID=5 INVALID_EMBEDDING_ID value - * @property {number} EMBEDDING_SIZE_MISMATCH=6 EMBEDDING_SIZE_MISMATCH value - * @property {number} NAMESPACE_MISSING=7 NAMESPACE_MISSING value - */ - RecordError.RecordErrorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ERROR_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EMPTY_LINE"] = 1; - values[valuesById[2] = "INVALID_JSON_SYNTAX"] = 2; - values[valuesById[3] = "INVALID_CSV_SYNTAX"] = 3; - values[valuesById[4] = "INVALID_AVRO_SYNTAX"] = 4; - values[valuesById[5] = "INVALID_EMBEDDING_ID"] = 5; - values[valuesById[6] = "EMBEDDING_SIZE_MISMATCH"] = 6; - values[valuesById[7] = "NAMESPACE_MISSING"] = 7; - return values; - })(); - - return RecordError; - })(); - - NearestNeighborSearchOperationMetadata.ContentValidationStats = (function() { - - /** - * Properties of a ContentValidationStats. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @interface IContentValidationStats - * @property {string|null} [sourceGcsUri] ContentValidationStats sourceGcsUri - * @property {number|Long|null} [validRecordCount] ContentValidationStats validRecordCount - * @property {number|Long|null} [invalidRecordCount] ContentValidationStats invalidRecordCount - * @property {Array.|null} [partialErrors] ContentValidationStats partialErrors - */ - - /** - * Constructs a new ContentValidationStats. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @classdesc Represents a ContentValidationStats. - * @implements IContentValidationStats - * @constructor - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set - */ - function ContentValidationStats(properties) { - this.partialErrors = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ContentValidationStats sourceGcsUri. - * @member {string} sourceGcsUri - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.sourceGcsUri = ""; - - /** - * ContentValidationStats validRecordCount. - * @member {number|Long} validRecordCount - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.validRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ContentValidationStats invalidRecordCount. - * @member {number|Long} invalidRecordCount - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.invalidRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ContentValidationStats partialErrors. - * @member {Array.} partialErrors - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.partialErrors = $util.emptyArray; - - /** - * Creates a new ContentValidationStats instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats instance - */ - ContentValidationStats.create = function create(properties) { - return new ContentValidationStats(properties); - }; - - /** - * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContentValidationStats.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceGcsUri); - if (message.validRecordCount != null && Object.hasOwnProperty.call(message, "validRecordCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.validRecordCount); - if (message.invalidRecordCount != null && Object.hasOwnProperty.call(message, "invalidRecordCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invalidRecordCount); - if (message.partialErrors != null && message.partialErrors.length) - for (var i = 0; i < message.partialErrors.length; ++i) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.encode(message.partialErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContentValidationStats.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ContentValidationStats message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContentValidationStats.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.sourceGcsUri = reader.string(); - break; - } - case 2: { - message.validRecordCount = reader.int64(); - break; - } - case 3: { - message.invalidRecordCount = reader.int64(); - break; - } - case 4: { - if (!(message.partialErrors && message.partialErrors.length)) - message.partialErrors = []; - message.partialErrors.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContentValidationStats.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ContentValidationStats message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContentValidationStats.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - if (!$util.isString(message.sourceGcsUri)) - return "sourceGcsUri: string expected"; - if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) - if (!$util.isInteger(message.validRecordCount) && !(message.validRecordCount && $util.isInteger(message.validRecordCount.low) && $util.isInteger(message.validRecordCount.high))) - return "validRecordCount: integer|Long expected"; - if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) - if (!$util.isInteger(message.invalidRecordCount) && !(message.invalidRecordCount && $util.isInteger(message.invalidRecordCount.low) && $util.isInteger(message.invalidRecordCount.high))) - return "invalidRecordCount: integer|Long expected"; - if (message.partialErrors != null && message.hasOwnProperty("partialErrors")) { - if (!Array.isArray(message.partialErrors)) - return "partialErrors: array expected"; - for (var i = 0; i < message.partialErrors.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify(message.partialErrors[i]); - if (error) - return "partialErrors." + error; - } - } - return null; - }; - - /** - * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - */ - ContentValidationStats.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); - if (object.sourceGcsUri != null) - message.sourceGcsUri = String(object.sourceGcsUri); - if (object.validRecordCount != null) - if ($util.Long) - (message.validRecordCount = $util.Long.fromValue(object.validRecordCount)).unsigned = false; - else if (typeof object.validRecordCount === "string") - message.validRecordCount = parseInt(object.validRecordCount, 10); - else if (typeof object.validRecordCount === "number") - message.validRecordCount = object.validRecordCount; - else if (typeof object.validRecordCount === "object") - message.validRecordCount = new $util.LongBits(object.validRecordCount.low >>> 0, object.validRecordCount.high >>> 0).toNumber(); - if (object.invalidRecordCount != null) - if ($util.Long) - (message.invalidRecordCount = $util.Long.fromValue(object.invalidRecordCount)).unsigned = false; - else if (typeof object.invalidRecordCount === "string") - message.invalidRecordCount = parseInt(object.invalidRecordCount, 10); - else if (typeof object.invalidRecordCount === "number") - message.invalidRecordCount = object.invalidRecordCount; - else if (typeof object.invalidRecordCount === "object") - message.invalidRecordCount = new $util.LongBits(object.invalidRecordCount.low >>> 0, object.invalidRecordCount.high >>> 0).toNumber(); - if (object.partialErrors) { - if (!Array.isArray(object.partialErrors)) - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: array expected"); - message.partialErrors = []; - for (var i = 0; i < object.partialErrors.length; ++i) { - if (typeof object.partialErrors[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: object expected"); - message.partialErrors[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.fromObject(object.partialErrors[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} message ContentValidationStats - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ContentValidationStats.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.partialErrors = []; - if (options.defaults) { - object.sourceGcsUri = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.validRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.validRecordCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.invalidRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.invalidRecordCount = options.longs === String ? "0" : 0; - } - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - object.sourceGcsUri = message.sourceGcsUri; - if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) - if (typeof message.validRecordCount === "number") - object.validRecordCount = options.longs === String ? String(message.validRecordCount) : message.validRecordCount; - else - object.validRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.validRecordCount) : options.longs === Number ? new $util.LongBits(message.validRecordCount.low >>> 0, message.validRecordCount.high >>> 0).toNumber() : message.validRecordCount; - if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) - if (typeof message.invalidRecordCount === "number") - object.invalidRecordCount = options.longs === String ? String(message.invalidRecordCount) : message.invalidRecordCount; - else - object.invalidRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRecordCount) : options.longs === Number ? new $util.LongBits(message.invalidRecordCount.low >>> 0, message.invalidRecordCount.high >>> 0).toNumber() : message.invalidRecordCount; - if (message.partialErrors && message.partialErrors.length) { - object.partialErrors = []; - for (var j = 0; j < message.partialErrors.length; ++j) - object.partialErrors[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.toObject(message.partialErrors[j], options); - } - return object; - }; - - /** - * Converts this ContentValidationStats to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - * @returns {Object.} JSON object - */ - ContentValidationStats.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ContentValidationStats - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ContentValidationStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats"; - }; - - return ContentValidationStats; - })(); - - return NearestNeighborSearchOperationMetadata; - })(); - - v1beta1.JobService = (function() { - - /** - * Constructs a new JobService service. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a JobService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function JobService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (JobService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = JobService; - - /** - * Creates new JobService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {JobService} RPC service. Useful where requests and/or responses are streamed. - */ - JobService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob - */ - - /** - * Calls CreateCustomJob. - * @function createCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.createCustomJob = function createCustomJob(request, callback) { - return this.rpcCall(createCustomJob, $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); - }, "name", { value: "CreateCustomJob" }); - - /** - * Calls CreateCustomJob. - * @function createCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob - */ - - /** - * Calls GetCustomJob. - * @function getCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.getCustomJob = function getCustomJob(request, callback) { - return this.rpcCall(getCustomJob, $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); - }, "name", { value: "GetCustomJob" }); - - /** - * Calls GetCustomJob. - * @function getCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listCustomJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListCustomJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} [response] ListCustomJobsResponse - */ - - /** - * Calls ListCustomJobs. - * @function listCustomJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback} callback Node-style callback called with the error, if any, and ListCustomJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.listCustomJobs = function listCustomJobs(request, callback) { - return this.rpcCall(listCustomJobs, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, request, callback); - }, "name", { value: "ListCustomJobs" }); - - /** - * Calls ListCustomJobs. - * @function listCustomJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteCustomJob. - * @function deleteCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.deleteCustomJob = function deleteCustomJob(request, callback) { - return this.rpcCall(deleteCustomJob, $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteCustomJob" }); - - /** - * Calls DeleteCustomJob. - * @function deleteCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls CancelCustomJob. - * @function cancelCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.cancelCustomJob = function cancelCustomJob(request, callback) { - return this.rpcCall(cancelCustomJob, $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelCustomJob" }); - - /** - * Calls CancelCustomJob. - * @function cancelCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob - */ - - /** - * Calls CreateDataLabelingJob. - * @function createDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.createDataLabelingJob = function createDataLabelingJob(request, callback) { - return this.rpcCall(createDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); - }, "name", { value: "CreateDataLabelingJob" }); - - /** - * Calls CreateDataLabelingJob. - * @function createDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob - */ - - /** - * Calls GetDataLabelingJob. - * @function getDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.getDataLabelingJob = function getDataLabelingJob(request, callback) { - return this.rpcCall(getDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); - }, "name", { value: "GetDataLabelingJob" }); - - /** - * Calls GetDataLabelingJob. - * @function getDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listDataLabelingJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListDataLabelingJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} [response] ListDataLabelingJobsResponse - */ - - /** - * Calls ListDataLabelingJobs. - * @function listDataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback} callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.listDataLabelingJobs = function listDataLabelingJobs(request, callback) { - return this.rpcCall(listDataLabelingJobs, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, request, callback); - }, "name", { value: "ListDataLabelingJobs" }); - - /** - * Calls ListDataLabelingJobs. - * @function listDataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteDataLabelingJob. - * @function deleteDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.deleteDataLabelingJob = function deleteDataLabelingJob(request, callback) { - return this.rpcCall(deleteDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteDataLabelingJob" }); - - /** - * Calls DeleteDataLabelingJob. - * @function deleteDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls CancelDataLabelingJob. - * @function cancelDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.cancelDataLabelingJob = function cancelDataLabelingJob(request, callback) { - return this.rpcCall(cancelDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelDataLabelingJob" }); - - /** - * Calls CancelDataLabelingJob. - * @function cancelDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob - */ - - /** - * Calls CreateHyperparameterTuningJob. - * @function createHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.createHyperparameterTuningJob = function createHyperparameterTuningJob(request, callback) { - return this.rpcCall(createHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); - }, "name", { value: "CreateHyperparameterTuningJob" }); - - /** - * Calls CreateHyperparameterTuningJob. - * @function createHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob - */ - - /** - * Calls GetHyperparameterTuningJob. - * @function getHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.getHyperparameterTuningJob = function getHyperparameterTuningJob(request, callback) { - return this.rpcCall(getHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); - }, "name", { value: "GetHyperparameterTuningJob" }); - - /** - * Calls GetHyperparameterTuningJob. - * @function getHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listHyperparameterTuningJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListHyperparameterTuningJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} [response] ListHyperparameterTuningJobsResponse - */ - - /** - * Calls ListHyperparameterTuningJobs. - * @function listHyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback} callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.listHyperparameterTuningJobs = function listHyperparameterTuningJobs(request, callback) { - return this.rpcCall(listHyperparameterTuningJobs, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, request, callback); - }, "name", { value: "ListHyperparameterTuningJobs" }); - - /** - * Calls ListHyperparameterTuningJobs. - * @function listHyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteHyperparameterTuningJob. - * @function deleteHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.deleteHyperparameterTuningJob = function deleteHyperparameterTuningJob(request, callback) { - return this.rpcCall(deleteHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteHyperparameterTuningJob" }); - - /** - * Calls DeleteHyperparameterTuningJob. - * @function deleteHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls CancelHyperparameterTuningJob. - * @function cancelHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.cancelHyperparameterTuningJob = function cancelHyperparameterTuningJob(request, callback) { - return this.rpcCall(cancelHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelHyperparameterTuningJob" }); - - /** - * Calls CancelHyperparameterTuningJob. - * @function cancelHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + * @property {number} EMBEDDING_SIZE_MISMATCH=6 EMBEDDING_SIZE_MISMATCH value + * @property {number} NAMESPACE_MISSING=7 NAMESPACE_MISSING value + */ + RecordError.RecordErrorType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ERROR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EMPTY_LINE"] = 1; + values[valuesById[2] = "INVALID_JSON_SYNTAX"] = 2; + values[valuesById[3] = "INVALID_CSV_SYNTAX"] = 3; + values[valuesById[4] = "INVALID_AVRO_SYNTAX"] = 4; + values[valuesById[5] = "INVALID_EMBEDDING_ID"] = 5; + values[valuesById[6] = "EMBEDDING_SIZE_MISMATCH"] = 6; + values[valuesById[7] = "NAMESPACE_MISSING"] = 7; + return values; + })(); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob - */ + return RecordError; + })(); - /** - * Calls CreateBatchPredictionJob. - * @function createBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.createBatchPredictionJob = function createBatchPredictionJob(request, callback) { - return this.rpcCall(createBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); - }, "name", { value: "CreateBatchPredictionJob" }); + NearestNeighborSearchOperationMetadata.ContentValidationStats = (function() { - /** - * Calls CreateBatchPredictionJob. - * @function createBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Properties of a ContentValidationStats. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @interface IContentValidationStats + * @property {string|null} [sourceGcsUri] ContentValidationStats sourceGcsUri + * @property {number|Long|null} [validRecordCount] ContentValidationStats validRecordCount + * @property {number|Long|null} [invalidRecordCount] ContentValidationStats invalidRecordCount + * @property {Array.|null} [partialErrors] ContentValidationStats partialErrors + */ - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob - */ + /** + * Constructs a new ContentValidationStats. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @classdesc Represents a ContentValidationStats. + * @implements IContentValidationStats + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set + */ + function ContentValidationStats(properties) { + this.partialErrors = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls GetBatchPredictionJob. - * @function getBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.getBatchPredictionJob = function getBatchPredictionJob(request, callback) { - return this.rpcCall(getBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); - }, "name", { value: "GetBatchPredictionJob" }); + /** + * ContentValidationStats sourceGcsUri. + * @member {string} sourceGcsUri + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.sourceGcsUri = ""; - /** - * Calls GetBatchPredictionJob. - * @function getBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * ContentValidationStats validRecordCount. + * @member {number|Long} validRecordCount + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.validRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listBatchPredictionJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListBatchPredictionJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} [response] ListBatchPredictionJobsResponse - */ + /** + * ContentValidationStats invalidRecordCount. + * @member {number|Long} invalidRecordCount + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.invalidRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Calls ListBatchPredictionJobs. - * @function listBatchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback} callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.listBatchPredictionJobs = function listBatchPredictionJobs(request, callback) { - return this.rpcCall(listBatchPredictionJobs, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, request, callback); - }, "name", { value: "ListBatchPredictionJobs" }); + /** + * ContentValidationStats partialErrors. + * @member {Array.} partialErrors + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.partialErrors = $util.emptyArray; - /** - * Calls ListBatchPredictionJobs. - * @function listBatchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a new ContentValidationStats instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats instance + */ + ContentValidationStats.create = function create(properties) { + return new ContentValidationStats(properties); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContentValidationStats.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceGcsUri); + if (message.validRecordCount != null && Object.hasOwnProperty.call(message, "validRecordCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.validRecordCount); + if (message.invalidRecordCount != null && Object.hasOwnProperty.call(message, "invalidRecordCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invalidRecordCount); + if (message.partialErrors != null && message.partialErrors.length) + for (var i = 0; i < message.partialErrors.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.encode(message.partialErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Calls DeleteBatchPredictionJob. - * @function deleteBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.deleteBatchPredictionJob = function deleteBatchPredictionJob(request, callback) { - return this.rpcCall(deleteBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteBatchPredictionJob" }); + /** + * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContentValidationStats.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls DeleteBatchPredictionJob. - * @function deleteBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a ContentValidationStats message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContentValidationStats.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sourceGcsUri = reader.string(); + break; + } + case 2: { + message.validRecordCount = reader.int64(); + break; + } + case 3: { + message.invalidRecordCount = reader.int64(); + break; + } + case 4: { + if (!(message.partialErrors && message.partialErrors.length)) + message.partialErrors = []; + message.partialErrors.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ + /** + * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContentValidationStats.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls CancelBatchPredictionJob. - * @function cancelBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.cancelBatchPredictionJob = function cancelBatchPredictionJob(request, callback) { - return this.rpcCall(cancelBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelBatchPredictionJob" }); + /** + * Verifies a ContentValidationStats message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContentValidationStats.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + if (!$util.isString(message.sourceGcsUri)) + return "sourceGcsUri: string expected"; + if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) + if (!$util.isInteger(message.validRecordCount) && !(message.validRecordCount && $util.isInteger(message.validRecordCount.low) && $util.isInteger(message.validRecordCount.high))) + return "validRecordCount: integer|Long expected"; + if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) + if (!$util.isInteger(message.invalidRecordCount) && !(message.invalidRecordCount && $util.isInteger(message.invalidRecordCount.low) && $util.isInteger(message.invalidRecordCount.high))) + return "invalidRecordCount: integer|Long expected"; + if (message.partialErrors != null && message.hasOwnProperty("partialErrors")) { + if (!Array.isArray(message.partialErrors)) + return "partialErrors: array expected"; + for (var i = 0; i < message.partialErrors.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify(message.partialErrors[i]); + if (error) + return "partialErrors." + error; + } + } + return null; + }; - /** - * Calls CancelBatchPredictionJob. - * @function cancelBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + */ + ContentValidationStats.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); + if (object.sourceGcsUri != null) + message.sourceGcsUri = String(object.sourceGcsUri); + if (object.validRecordCount != null) + if ($util.Long) + (message.validRecordCount = $util.Long.fromValue(object.validRecordCount)).unsigned = false; + else if (typeof object.validRecordCount === "string") + message.validRecordCount = parseInt(object.validRecordCount, 10); + else if (typeof object.validRecordCount === "number") + message.validRecordCount = object.validRecordCount; + else if (typeof object.validRecordCount === "object") + message.validRecordCount = new $util.LongBits(object.validRecordCount.low >>> 0, object.validRecordCount.high >>> 0).toNumber(); + if (object.invalidRecordCount != null) + if ($util.Long) + (message.invalidRecordCount = $util.Long.fromValue(object.invalidRecordCount)).unsigned = false; + else if (typeof object.invalidRecordCount === "string") + message.invalidRecordCount = parseInt(object.invalidRecordCount, 10); + else if (typeof object.invalidRecordCount === "number") + message.invalidRecordCount = object.invalidRecordCount; + else if (typeof object.invalidRecordCount === "object") + message.invalidRecordCount = new $util.LongBits(object.invalidRecordCount.low >>> 0, object.invalidRecordCount.high >>> 0).toNumber(); + if (object.partialErrors) { + if (!Array.isArray(object.partialErrors)) + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: array expected"); + message.partialErrors = []; + for (var i = 0; i < object.partialErrors.length; ++i) { + if (typeof object.partialErrors[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: object expected"); + message.partialErrors[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.fromObject(object.partialErrors[i]); + } + } + return message; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob - */ + /** + * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} message ContentValidationStats + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContentValidationStats.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.partialErrors = []; + if (options.defaults) { + object.sourceGcsUri = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.validRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.validRecordCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.invalidRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.invalidRecordCount = options.longs === String ? "0" : 0; + } + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + object.sourceGcsUri = message.sourceGcsUri; + if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) + if (typeof message.validRecordCount === "number") + object.validRecordCount = options.longs === String ? String(message.validRecordCount) : message.validRecordCount; + else + object.validRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.validRecordCount) : options.longs === Number ? new $util.LongBits(message.validRecordCount.low >>> 0, message.validRecordCount.high >>> 0).toNumber() : message.validRecordCount; + if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) + if (typeof message.invalidRecordCount === "number") + object.invalidRecordCount = options.longs === String ? String(message.invalidRecordCount) : message.invalidRecordCount; + else + object.invalidRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRecordCount) : options.longs === Number ? new $util.LongBits(message.invalidRecordCount.low >>> 0, message.invalidRecordCount.high >>> 0).toNumber() : message.invalidRecordCount; + if (message.partialErrors && message.partialErrors.length) { + object.partialErrors = []; + for (var j = 0; j < message.partialErrors.length; ++j) + object.partialErrors[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.toObject(message.partialErrors[j], options); + } + return object; + }; - /** - * Calls CreateModelDeploymentMonitoringJob. - * @function createModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.createModelDeploymentMonitoringJob = function createModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(createModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); - }, "name", { value: "CreateModelDeploymentMonitoringJob" }); + /** + * Converts this ContentValidationStats to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + * @returns {Object.} JSON object + */ + ContentValidationStats.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls CreateModelDeploymentMonitoringJob. - * @function createModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Gets the default type url for ContentValidationStats + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ContentValidationStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats"; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef SearchModelDeploymentMonitoringStatsAnomaliesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse - */ + return ContentValidationStats; + })(); - /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @function searchModelDeploymentMonitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback} callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.searchModelDeploymentMonitoringStatsAnomalies = function searchModelDeploymentMonitoringStatsAnomalies(request, callback) { - return this.rpcCall(searchModelDeploymentMonitoringStatsAnomalies, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, request, callback); - }, "name", { value: "SearchModelDeploymentMonitoringStatsAnomalies" }); + return NearestNeighborSearchOperationMetadata; + })(); - /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @function searchModelDeploymentMonitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v1beta1.JobService = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob + * Constructs a new JobService service. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a JobService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function JobService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - /** - * Calls GetModelDeploymentMonitoringJob. - * @function getModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.getModelDeploymentMonitoringJob = function getModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(getModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); - }, "name", { value: "GetModelDeploymentMonitoringJob" }); + (JobService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = JobService; /** - * Calls GetModelDeploymentMonitoringJob. - * @function getModelDeploymentMonitoringJob + * Creates new JobService service using the specified rpc implementation. + * @function create * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {JobService} RPC service. Useful where requests and/or responses are streamed. */ + JobService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listModelDeploymentMonitoringJobs}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createCustomJob}. * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListModelDeploymentMonitoringJobsCallback + * @typedef CreateCustomJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} [response] ListModelDeploymentMonitoringJobsResponse + * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob */ /** - * Calls ListModelDeploymentMonitoringJobs. - * @function listModelDeploymentMonitoringJobs + * Calls CreateCustomJob. + * @function createCustomJob * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback} callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob * @returns {undefined} * @variation 1 */ - Object.defineProperty(JobService.prototype.listModelDeploymentMonitoringJobs = function listModelDeploymentMonitoringJobs(request, callback) { - return this.rpcCall(listModelDeploymentMonitoringJobs, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, request, callback); - }, "name", { value: "ListModelDeploymentMonitoringJobs" }); + Object.defineProperty(JobService.prototype.createCustomJob = function createCustomJob(request, callback) { + return this.rpcCall(createCustomJob, $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); + }, "name", { value: "CreateCustomJob" }); /** - * Calls ListModelDeploymentMonitoringJobs. - * @function listModelDeploymentMonitoringJobs + * Calls CreateCustomJob. + * @function createCustomJob * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|updateModelDeploymentMonitoringJob}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getCustomJob}. * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef UpdateModelDeploymentMonitoringJobCallback + * @typedef GetCustomJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob */ /** - * Calls UpdateModelDeploymentMonitoringJob. - * @function updateModelDeploymentMonitoringJob + * Calls GetCustomJob. + * @function getCustomJob * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob * @returns {undefined} * @variation 1 */ - Object.defineProperty(JobService.prototype.updateModelDeploymentMonitoringJob = function updateModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(updateModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateModelDeploymentMonitoringJob" }); + Object.defineProperty(JobService.prototype.getCustomJob = function getCustomJob(request, callback) { + return this.rpcCall(getCustomJob, $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); + }, "name", { value: "GetCustomJob" }); /** - * Calls UpdateModelDeploymentMonitoringJob. - * @function updateModelDeploymentMonitoringJob + * Calls GetCustomJob. + * @function getCustomJob * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteModelDeploymentMonitoringJob}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listCustomJobs}. * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteModelDeploymentMonitoringJobCallback + * @typedef ListCustomJobsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} [response] ListCustomJobsResponse */ /** - * Calls DeleteModelDeploymentMonitoringJob. - * @function deleteModelDeploymentMonitoringJob + * Calls ListCustomJobs. + * @function listCustomJobs * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback} callback Node-style callback called with the error, if any, and ListCustomJobsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(JobService.prototype.deleteModelDeploymentMonitoringJob = function deleteModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(deleteModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteModelDeploymentMonitoringJob" }); + Object.defineProperty(JobService.prototype.listCustomJobs = function listCustomJobs(request, callback) { + return this.rpcCall(listCustomJobs, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, request, callback); + }, "name", { value: "ListCustomJobs" }); /** - * Calls DeleteModelDeploymentMonitoringJob. - * @function deleteModelDeploymentMonitoringJob + * Calls ListCustomJobs. + * @function listCustomJobs * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|pauseModelDeploymentMonitoringJob}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteCustomJob}. * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef PauseModelDeploymentMonitoringJobCallback + * @typedef DeleteCustomJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls PauseModelDeploymentMonitoringJob. - * @function pauseModelDeploymentMonitoringJob + * Calls DeleteCustomJob. + * @function deleteCustomJob * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(JobService.prototype.pauseModelDeploymentMonitoringJob = function pauseModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(pauseModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "PauseModelDeploymentMonitoringJob" }); + Object.defineProperty(JobService.prototype.deleteCustomJob = function deleteCustomJob(request, callback) { + return this.rpcCall(deleteCustomJob, $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteCustomJob" }); /** - * Calls PauseModelDeploymentMonitoringJob. - * @function pauseModelDeploymentMonitoringJob + * Calls DeleteCustomJob. + * @function deleteCustomJob * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|resumeModelDeploymentMonitoringJob}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelCustomJob}. * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ResumeModelDeploymentMonitoringJobCallback + * @typedef CancelCustomJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls ResumeModelDeploymentMonitoringJob. - * @function resumeModelDeploymentMonitoringJob + * Calls CancelCustomJob. + * @function cancelCustomJob * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(JobService.prototype.resumeModelDeploymentMonitoringJob = function resumeModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(resumeModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "ResumeModelDeploymentMonitoringJob" }); + Object.defineProperty(JobService.prototype.cancelCustomJob = function cancelCustomJob(request, callback) { + return this.rpcCall(cancelCustomJob, $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelCustomJob" }); /** - * Calls ResumeModelDeploymentMonitoringJob. - * @function resumeModelDeploymentMonitoringJob + * Calls CancelCustomJob. + * @function cancelCustomJob * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object * @returns {Promise} Promise * @variation 2 */ - return JobService; - })(); - - v1beta1.CreateCustomJobRequest = (function() { - - /** - * Properties of a CreateCustomJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateCustomJobRequest - * @property {string|null} [parent] CreateCustomJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.ICustomJob|null} [customJob] CreateCustomJobRequest customJob - */ - - /** - * Constructs a new CreateCustomJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateCustomJobRequest. - * @implements ICreateCustomJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set - */ - function CreateCustomJobRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateCustomJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest - * @instance - */ - CreateCustomJobRequest.prototype.parent = ""; - - /** - * CreateCustomJobRequest customJob. - * @member {google.cloud.aiplatform.v1beta1.ICustomJob|null|undefined} customJob - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest - * @instance - */ - CreateCustomJobRequest.prototype.customJob = null; - - /** - * Creates a new CreateCustomJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest instance - */ - CreateCustomJobRequest.create = function create(properties) { - return new CreateCustomJobRequest(properties); - }; - - /** - * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateCustomJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) - $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateCustomJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateCustomJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateCustomJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.customJob != null && message.hasOwnProperty("customJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJob); - if (error) - return "customJob." + error; - } - return null; - }; - - /** - * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest - */ - CreateCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.customJob != null) { - if (typeof object.customJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.customJob: object expected"); - message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJob); - } - return message; - }; - - /** - * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} message CreateCustomJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateCustomJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.customJob = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.customJob != null && message.hasOwnProperty("customJob")) - object.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJob, options); - return object; - }; - - /** - * Converts this CreateCustomJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest - * @instance - * @returns {Object.} JSON object - */ - CreateCustomJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CreateCustomJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CreateCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateCustomJobRequest"; - }; - - return CreateCustomJobRequest; - })(); - - v1beta1.GetCustomJobRequest = (function() { - - /** - * Properties of a GetCustomJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetCustomJobRequest - * @property {string|null} [name] GetCustomJobRequest name - */ - - /** - * Constructs a new GetCustomJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetCustomJobRequest. - * @implements IGetCustomJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set - */ - function GetCustomJobRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetCustomJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest - * @instance - */ - GetCustomJobRequest.prototype.name = ""; - - /** - * Creates a new GetCustomJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest instance - */ - GetCustomJobRequest.create = function create(properties) { - return new GetCustomJobRequest(properties); - }; - - /** - * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetCustomJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob */ - GetCustomJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateDataLabelingJob. + * @function createDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob + * @returns {undefined} + * @variation 1 */ - GetCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.createDataLabelingJob = function createDataLabelingJob(request, callback) { + return this.rpcCall(createDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); + }, "name", { value: "CreateDataLabelingJob" }); /** - * Verifies a GetCustomJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateDataLabelingJob. + * @function createDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetCustomJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; /** - * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob */ - GetCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} message GetCustomJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetDataLabelingJob. + * @function getDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob + * @returns {undefined} + * @variation 1 */ - GetCustomJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + Object.defineProperty(JobService.prototype.getDataLabelingJob = function getDataLabelingJob(request, callback) { + return this.rpcCall(getDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); + }, "name", { value: "GetDataLabelingJob" }); /** - * Converts this GetCustomJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * Calls GetDataLabelingJob. + * @function getDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetCustomJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for GetCustomJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listDataLabelingJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListDataLabelingJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} [response] ListDataLabelingJobsResponse */ - GetCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetCustomJobRequest"; - }; - return GetCustomJobRequest; - })(); - - v1beta1.ListCustomJobsRequest = (function() { + /** + * Calls ListDataLabelingJobs. + * @function listDataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback} callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listDataLabelingJobs = function listDataLabelingJobs(request, callback) { + return this.rpcCall(listDataLabelingJobs, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, request, callback); + }, "name", { value: "ListDataLabelingJobs" }); /** - * Properties of a ListCustomJobsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListCustomJobsRequest - * @property {string|null} [parent] ListCustomJobsRequest parent - * @property {string|null} [filter] ListCustomJobsRequest filter - * @property {number|null} [pageSize] ListCustomJobsRequest pageSize - * @property {string|null} [pageToken] ListCustomJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListCustomJobsRequest readMask + * Calls ListDataLabelingJobs. + * @function listDataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new ListCustomJobsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListCustomJobsRequest. - * @implements IListCustomJobsRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function ListCustomJobsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * ListCustomJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * Calls DeleteDataLabelingJob. + * @function deleteDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListCustomJobsRequest.prototype.parent = ""; + Object.defineProperty(JobService.prototype.deleteDataLabelingJob = function deleteDataLabelingJob(request, callback) { + return this.rpcCall(deleteDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteDataLabelingJob" }); /** - * ListCustomJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * Calls DeleteDataLabelingJob. + * @function deleteDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListCustomJobsRequest.prototype.filter = ""; /** - * ListCustomJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - ListCustomJobsRequest.prototype.pageSize = 0; /** - * ListCustomJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * Calls CancelDataLabelingJob. + * @function cancelDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListCustomJobsRequest.prototype.pageToken = ""; + Object.defineProperty(JobService.prototype.cancelDataLabelingJob = function cancelDataLabelingJob(request, callback) { + return this.rpcCall(cancelDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelDataLabelingJob" }); /** - * ListCustomJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * Calls CancelDataLabelingJob. + * @function cancelDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListCustomJobsRequest.prototype.readMask = null; /** - * Creates a new ListCustomJobsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob */ - ListCustomJobsRequest.create = function create(properties) { - return new ListCustomJobsRequest(properties); - }; /** - * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateHyperparameterTuningJob. + * @function createHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * @returns {undefined} + * @variation 1 */ - ListCustomJobsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; + Object.defineProperty(JobService.prototype.createHyperparameterTuningJob = function createHyperparameterTuningJob(request, callback) { + return this.rpcCall(createHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); + }, "name", { value: "CreateHyperparameterTuningJob" }); /** - * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateHyperparameterTuningJob. + * @function createHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListCustomJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob */ - ListCustomJobsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetHyperparameterTuningJob. + * @function getHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * @returns {undefined} + * @variation 1 */ - ListCustomJobsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.getHyperparameterTuningJob = function getHyperparameterTuningJob(request, callback) { + return this.rpcCall(getHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); + }, "name", { value: "GetHyperparameterTuningJob" }); /** - * Verifies a ListCustomJobsRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetHyperparameterTuningJob. + * @function getHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListCustomJobsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } - return null; - }; /** - * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listHyperparameterTuningJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListHyperparameterTuningJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} [response] ListHyperparameterTuningJobsResponse */ - ListCustomJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } - return message; - }; /** - * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} message ListCustomJobsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListHyperparameterTuningJobs. + * @function listHyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback} callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse + * @returns {undefined} + * @variation 1 */ - ListCustomJobsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - return object; - }; + Object.defineProperty(JobService.prototype.listHyperparameterTuningJobs = function listHyperparameterTuningJobs(request, callback) { + return this.rpcCall(listHyperparameterTuningJobs, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, request, callback); + }, "name", { value: "ListHyperparameterTuningJobs" }); /** - * Converts this ListCustomJobsRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * Calls ListHyperparameterTuningJobs. + * @function listHyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListCustomJobsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for ListCustomJobsRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListCustomJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListCustomJobsRequest"; - }; - - return ListCustomJobsRequest; - })(); - v1beta1.ListCustomJobsResponse = (function() { + /** + * Calls DeleteHyperparameterTuningJob. + * @function deleteHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.deleteHyperparameterTuningJob = function deleteHyperparameterTuningJob(request, callback) { + return this.rpcCall(deleteHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteHyperparameterTuningJob" }); /** - * Properties of a ListCustomJobsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListCustomJobsResponse - * @property {Array.|null} [customJobs] ListCustomJobsResponse customJobs - * @property {string|null} [nextPageToken] ListCustomJobsResponse nextPageToken + * Calls DeleteHyperparameterTuningJob. + * @function deleteHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new ListCustomJobsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListCustomJobsResponse. - * @implements IListCustomJobsResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - function ListCustomJobsResponse(properties) { - this.customJobs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * ListCustomJobsResponse customJobs. - * @member {Array.} customJobs - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * Calls CancelHyperparameterTuningJob. + * @function cancelHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListCustomJobsResponse.prototype.customJobs = $util.emptyArray; + Object.defineProperty(JobService.prototype.cancelHyperparameterTuningJob = function cancelHyperparameterTuningJob(request, callback) { + return this.rpcCall(cancelHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelHyperparameterTuningJob" }); /** - * ListCustomJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * Calls CancelHyperparameterTuningJob. + * @function cancelHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListCustomJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListCustomJobsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob */ - ListCustomJobsResponse.create = function create(properties) { - return new ListCustomJobsResponse(properties); - }; /** - * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateBatchPredictionJob. + * @function createBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob + * @returns {undefined} + * @variation 1 */ - ListCustomJobsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.customJobs != null && message.customJobs.length) - for (var i = 0; i < message.customJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + Object.defineProperty(JobService.prototype.createBatchPredictionJob = function createBatchPredictionJob(request, callback) { + return this.rpcCall(createBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); + }, "name", { value: "CreateBatchPredictionJob" }); /** - * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateBatchPredictionJob. + * @function createBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListCustomJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob */ - ListCustomJobsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.customJobs && message.customJobs.length)) - message.customJobs = []; - message.customJobs.push($root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetBatchPredictionJob. + * @function getBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob + * @returns {undefined} + * @variation 1 */ - ListCustomJobsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.getBatchPredictionJob = function getBatchPredictionJob(request, callback) { + return this.rpcCall(getBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); + }, "name", { value: "GetBatchPredictionJob" }); /** - * Verifies a ListCustomJobsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetBatchPredictionJob. + * @function getBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListCustomJobsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.customJobs != null && message.hasOwnProperty("customJobs")) { - if (!Array.isArray(message.customJobs)) - return "customJobs: array expected"; - for (var i = 0; i < message.customJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJobs[i]); - if (error) - return "customJobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; /** - * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listBatchPredictionJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListBatchPredictionJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} [response] ListBatchPredictionJobsResponse */ - ListCustomJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); - if (object.customJobs) { - if (!Array.isArray(object.customJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: array expected"); - message.customJobs = []; - for (var i = 0; i < object.customJobs.length; ++i) { - if (typeof object.customJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: object expected"); - message.customJobs[i] = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; /** - * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} message ListCustomJobsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListBatchPredictionJobs. + * @function listBatchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback} callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse + * @returns {undefined} + * @variation 1 */ - ListCustomJobsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.customJobs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.customJobs && message.customJobs.length) { - object.customJobs = []; - for (var j = 0; j < message.customJobs.length; ++j) - object.customJobs[j] = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + Object.defineProperty(JobService.prototype.listBatchPredictionJobs = function listBatchPredictionJobs(request, callback) { + return this.rpcCall(listBatchPredictionJobs, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, request, callback); + }, "name", { value: "ListBatchPredictionJobs" }); /** - * Converts this ListCustomJobsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * Calls ListBatchPredictionJobs. + * @function listBatchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListCustomJobsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for ListCustomJobsResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListCustomJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListCustomJobsResponse"; - }; - return ListCustomJobsResponse; - })(); + /** + * Calls DeleteBatchPredictionJob. + * @function deleteBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.deleteBatchPredictionJob = function deleteBatchPredictionJob(request, callback) { + return this.rpcCall(deleteBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteBatchPredictionJob" }); - v1beta1.DeleteCustomJobRequest = (function() { + /** + * Calls DeleteBatchPredictionJob. + * @function deleteBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ /** - * Properties of a DeleteCustomJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteCustomJobRequest - * @property {string|null} [name] DeleteCustomJobRequest name + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ /** - * Constructs a new DeleteCustomJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteCustomJobRequest. - * @implements IDeleteCustomJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set + * Calls CancelBatchPredictionJob. + * @function cancelBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - function DeleteCustomJobRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(JobService.prototype.cancelBatchPredictionJob = function cancelBatchPredictionJob(request, callback) { + return this.rpcCall(cancelBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelBatchPredictionJob" }); /** - * DeleteCustomJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * Calls CancelBatchPredictionJob. + * @function cancelBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteCustomJobRequest.prototype.name = ""; /** - * Creates a new DeleteCustomJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob */ - DeleteCustomJobRequest.create = function create(properties) { - return new DeleteCustomJobRequest(properties); - }; /** - * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateModelDeploymentMonitoringJob. + * @function createModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * @returns {undefined} + * @variation 1 */ - DeleteCustomJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + Object.defineProperty(JobService.prototype.createModelDeploymentMonitoringJob = function createModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(createModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); + }, "name", { value: "CreateModelDeploymentMonitoringJob" }); /** - * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateModelDeploymentMonitoringJob. + * @function createModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef SearchModelDeploymentMonitoringStatsAnomaliesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - DeleteCustomJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @function searchModelDeploymentMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback} callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {undefined} + * @variation 1 */ - DeleteCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.searchModelDeploymentMonitoringStatsAnomalies = function searchModelDeploymentMonitoringStatsAnomalies(request, callback) { + return this.rpcCall(searchModelDeploymentMonitoringStatsAnomalies, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, request, callback); + }, "name", { value: "SearchModelDeploymentMonitoringStatsAnomalies" }); /** - * Verifies a DeleteCustomJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @function searchModelDeploymentMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteCustomJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; /** - * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob */ - DeleteCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} message DeleteCustomJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetModelDeploymentMonitoringJob. + * @function getModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * @returns {undefined} + * @variation 1 */ - DeleteCustomJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + Object.defineProperty(JobService.prototype.getModelDeploymentMonitoringJob = function getModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(getModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); + }, "name", { value: "GetModelDeploymentMonitoringJob" }); /** - * Converts this DeleteCustomJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * Calls GetModelDeploymentMonitoringJob. + * @function getModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteCustomJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for DeleteCustomJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listModelDeploymentMonitoringJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListModelDeploymentMonitoringJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} [response] ListModelDeploymentMonitoringJobsResponse */ - DeleteCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest"; - }; - return DeleteCustomJobRequest; - })(); - - v1beta1.CancelCustomJobRequest = (function() { + /** + * Calls ListModelDeploymentMonitoringJobs. + * @function listModelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback} callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listModelDeploymentMonitoringJobs = function listModelDeploymentMonitoringJobs(request, callback) { + return this.rpcCall(listModelDeploymentMonitoringJobs, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, request, callback); + }, "name", { value: "ListModelDeploymentMonitoringJobs" }); /** - * Properties of a CancelCustomJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelCustomJobRequest - * @property {string|null} [name] CancelCustomJobRequest name + * Calls ListModelDeploymentMonitoringJobs. + * @function listModelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CancelCustomJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelCustomJobRequest. - * @implements ICancelCustomJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|updateModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef UpdateModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function CancelCustomJobRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * CancelCustomJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * Calls UpdateModelDeploymentMonitoringJob. + * @function updateModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CancelCustomJobRequest.prototype.name = ""; + Object.defineProperty(JobService.prototype.updateModelDeploymentMonitoringJob = function updateModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(updateModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateModelDeploymentMonitoringJob" }); /** - * Creates a new CancelCustomJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest instance + * Calls UpdateModelDeploymentMonitoringJob. + * @function updateModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelCustomJobRequest.create = function create(properties) { - return new CancelCustomJobRequest(properties); - }; /** - * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CancelCustomJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; /** - * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteModelDeploymentMonitoringJob. + * @function deleteModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CancelCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(JobService.prototype.deleteModelDeploymentMonitoringJob = function deleteModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(deleteModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModelDeploymentMonitoringJob" }); /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelDeploymentMonitoringJob. + * @function deleteModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelCustomJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|pauseModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef PauseModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - CancelCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a CancelCustomJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls PauseModelDeploymentMonitoringJob. + * @function pauseModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - CancelCustomJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + Object.defineProperty(JobService.prototype.pauseModelDeploymentMonitoringJob = function pauseModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(pauseModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "PauseModelDeploymentMonitoringJob" }); /** - * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest + * Calls PauseModelDeploymentMonitoringJob. + * @function pauseModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} message CancelCustomJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|resumeModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ResumeModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - CancelCustomJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; /** - * Converts this CancelCustomJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * Calls ResumeModelDeploymentMonitoringJob. + * @function resumeModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - CancelCustomJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(JobService.prototype.resumeModelDeploymentMonitoringJob = function resumeModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(resumeModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "ResumeModelDeploymentMonitoringJob" }); /** - * Gets the default type url for CancelCustomJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ResumeModelDeploymentMonitoringJob. + * @function resumeModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelCustomJobRequest"; - }; - return CancelCustomJobRequest; + return JobService; })(); - v1beta1.CreateDataLabelingJobRequest = (function() { + v1beta1.CreateCustomJobRequest = (function() { /** - * Properties of a CreateDataLabelingJobRequest. + * Properties of a CreateCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateDataLabelingJobRequest - * @property {string|null} [parent] CreateDataLabelingJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null} [dataLabelingJob] CreateDataLabelingJobRequest dataLabelingJob + * @interface ICreateCustomJobRequest + * @property {string|null} [parent] CreateCustomJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.ICustomJob|null} [customJob] CreateCustomJobRequest customJob */ /** - * Constructs a new CreateDataLabelingJobRequest. + * Constructs a new CreateCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateDataLabelingJobRequest. - * @implements ICreateDataLabelingJobRequest + * @classdesc Represents a CreateCustomJobRequest. + * @implements ICreateCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set */ - function CreateDataLabelingJobRequest(properties) { + function CreateCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -242580,80 +248313,80 @@ } /** - * CreateDataLabelingJobRequest parent. + * CreateCustomJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance */ - CreateDataLabelingJobRequest.prototype.parent = ""; + CreateCustomJobRequest.prototype.parent = ""; /** - * CreateDataLabelingJobRequest dataLabelingJob. - * @member {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null|undefined} dataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * CreateCustomJobRequest customJob. + * @member {google.cloud.aiplatform.v1beta1.ICustomJob|null|undefined} customJob + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance */ - CreateDataLabelingJobRequest.prototype.dataLabelingJob = null; + CreateCustomJobRequest.prototype.customJob = null; /** - * Creates a new CreateDataLabelingJobRequest instance using the specified properties. + * Creates a new CreateCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest instance */ - CreateDataLabelingJobRequest.create = function create(properties) { - return new CreateDataLabelingJobRequest(properties); + CreateCustomJobRequest.create = function create(properties) { + return new CreateCustomJobRequest(properties); }; /** - * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDataLabelingJobRequest.encode = function encode(message, writer) { + CreateCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.dataLabelingJob != null && Object.hasOwnProperty.call(message, "dataLabelingJob")) - $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) + $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDataLabelingJobRequest.decode = function decode(reader, length) { + CreateCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -242662,7 +248395,7 @@ break; } case 2: { - message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32()); + message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32()); break; } default: @@ -242674,136 +248407,136 @@ }; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateDataLabelingJobRequest message. + * Verifies a CreateCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateDataLabelingJobRequest.verify = function verify(message) { + CreateCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJob); + if (message.customJob != null && message.hasOwnProperty("customJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJob); if (error) - return "dataLabelingJob." + error; + return "customJob." + error; } return null; }; /** - * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest */ - CreateDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest) + CreateCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.dataLabelingJob != null) { - if (typeof object.dataLabelingJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.dataLabelingJob: object expected"); - message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJob); + if (object.customJob != null) { + if (typeof object.customJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.customJob: object expected"); + message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJob); } return message; }; /** - * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} message CreateDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} message CreateCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDataLabelingJobRequest.toObject = function toObject(message, options) { + CreateCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.dataLabelingJob = null; + object.customJob = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) - object.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJob, options); + if (message.customJob != null && message.hasOwnProperty("customJob")) + object.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJob, options); return object; }; /** - * Converts this CreateDataLabelingJobRequest to JSON. + * Converts this CreateCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance * @returns {Object.} JSON object */ - CreateDataLabelingJobRequest.prototype.toJSON = function toJSON() { + CreateCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateDataLabelingJobRequest + * Gets the default type url for CreateCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateCustomJobRequest"; }; - return CreateDataLabelingJobRequest; + return CreateCustomJobRequest; })(); - v1beta1.GetDataLabelingJobRequest = (function() { + v1beta1.GetCustomJobRequest = (function() { /** - * Properties of a GetDataLabelingJobRequest. + * Properties of a GetCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetDataLabelingJobRequest - * @property {string|null} [name] GetDataLabelingJobRequest name + * @interface IGetCustomJobRequest + * @property {string|null} [name] GetCustomJobRequest name */ /** - * Constructs a new GetDataLabelingJobRequest. + * Constructs a new GetCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetDataLabelingJobRequest. - * @implements IGetDataLabelingJobRequest + * @classdesc Represents a GetCustomJobRequest. + * @implements IGetCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set */ - function GetDataLabelingJobRequest(properties) { + function GetCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -242811,35 +248544,35 @@ } /** - * GetDataLabelingJobRequest name. + * GetCustomJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @instance */ - GetDataLabelingJobRequest.prototype.name = ""; + GetCustomJobRequest.prototype.name = ""; /** - * Creates a new GetDataLabelingJobRequest instance using the specified properties. + * Creates a new GetCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest instance */ - GetDataLabelingJobRequest.create = function create(properties) { - return new GetDataLabelingJobRequest(properties); + GetCustomJobRequest.create = function create(properties) { + return new GetCustomJobRequest(properties); }; /** - * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataLabelingJobRequest.encode = function encode(message, writer) { + GetCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -242848,33 +248581,33 @@ }; /** - * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a GetCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataLabelingJobRequest.decode = function decode(reader, length) { + GetCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -242891,30 +248624,30 @@ }; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDataLabelingJobRequest message. + * Verifies a GetCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataLabelingJobRequest.verify = function verify(message) { + GetCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -242924,32 +248657,32 @@ }; /** - * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest */ - GetDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest) + GetCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} message GetDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} message GetCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataLabelingJobRequest.toObject = function toObject(message, options) { + GetCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -242961,57 +248694,56 @@ }; /** - * Converts this GetDataLabelingJobRequest to JSON. + * Converts this GetCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @instance * @returns {Object.} JSON object */ - GetDataLabelingJobRequest.prototype.toJSON = function toJSON() { + GetCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetDataLabelingJobRequest + * Gets the default type url for GetCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetCustomJobRequest"; }; - return GetDataLabelingJobRequest; + return GetCustomJobRequest; })(); - v1beta1.ListDataLabelingJobsRequest = (function() { + v1beta1.ListCustomJobsRequest = (function() { /** - * Properties of a ListDataLabelingJobsRequest. + * Properties of a ListCustomJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDataLabelingJobsRequest - * @property {string|null} [parent] ListDataLabelingJobsRequest parent - * @property {string|null} [filter] ListDataLabelingJobsRequest filter - * @property {number|null} [pageSize] ListDataLabelingJobsRequest pageSize - * @property {string|null} [pageToken] ListDataLabelingJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListDataLabelingJobsRequest readMask - * @property {string|null} [orderBy] ListDataLabelingJobsRequest orderBy + * @interface IListCustomJobsRequest + * @property {string|null} [parent] ListCustomJobsRequest parent + * @property {string|null} [filter] ListCustomJobsRequest filter + * @property {number|null} [pageSize] ListCustomJobsRequest pageSize + * @property {string|null} [pageToken] ListCustomJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListCustomJobsRequest readMask */ /** - * Constructs a new ListDataLabelingJobsRequest. + * Constructs a new ListCustomJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataLabelingJobsRequest. - * @implements IListDataLabelingJobsRequest + * @classdesc Represents a ListCustomJobsRequest. + * @implements IListCustomJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set */ - function ListDataLabelingJobsRequest(properties) { + function ListCustomJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243019,75 +248751,67 @@ } /** - * ListDataLabelingJobsRequest parent. + * ListCustomJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - ListDataLabelingJobsRequest.prototype.parent = ""; + ListCustomJobsRequest.prototype.parent = ""; /** - * ListDataLabelingJobsRequest filter. + * ListCustomJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - ListDataLabelingJobsRequest.prototype.filter = ""; + ListCustomJobsRequest.prototype.filter = ""; /** - * ListDataLabelingJobsRequest pageSize. + * ListCustomJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - ListDataLabelingJobsRequest.prototype.pageSize = 0; + ListCustomJobsRequest.prototype.pageSize = 0; /** - * ListDataLabelingJobsRequest pageToken. + * ListCustomJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - ListDataLabelingJobsRequest.prototype.pageToken = ""; + ListCustomJobsRequest.prototype.pageToken = ""; /** - * ListDataLabelingJobsRequest readMask. + * ListCustomJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.readMask = null; - - /** - * ListDataLabelingJobsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - ListDataLabelingJobsRequest.prototype.orderBy = ""; + ListCustomJobsRequest.prototype.readMask = null; /** - * Creates a new ListDataLabelingJobsRequest instance using the specified properties. + * Creates a new ListCustomJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest instance */ - ListDataLabelingJobsRequest.create = function create(properties) { - return new ListDataLabelingJobsRequest(properties); + ListCustomJobsRequest.create = function create(properties) { + return new ListCustomJobsRequest(properties); }; /** - * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsRequest.encode = function encode(message, writer) { + ListCustomJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -243100,39 +248824,37 @@ writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsRequest.decode = function decode(reader, length) { + ListCustomJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -243156,10 +248878,6 @@ message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } - case 6: { - message.orderBy = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -243169,30 +248887,30 @@ }; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataLabelingJobsRequest message. + * Verifies a ListCustomJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataLabelingJobsRequest.verify = function verify(message) { + ListCustomJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -243212,24 +248930,21 @@ if (error) return "readMask." + error; } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest */ - ListDataLabelingJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest) + ListCustomJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -243240,24 +248955,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} message ListDataLabelingJobsRequest + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} message ListCustomJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataLabelingJobsRequest.toObject = function toObject(message, options) { + ListCustomJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -243267,7 +248980,6 @@ object.pageSize = 0; object.pageToken = ""; object.readMask = null; - object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -243279,60 +248991,58 @@ object.pageToken = message.pageToken; if (message.readMask != null && message.hasOwnProperty("readMask")) object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; return object; }; /** - * Converts this ListDataLabelingJobsRequest to JSON. + * Converts this ListCustomJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance * @returns {Object.} JSON object */ - ListDataLabelingJobsRequest.prototype.toJSON = function toJSON() { + ListCustomJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDataLabelingJobsRequest + * Gets the default type url for ListCustomJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDataLabelingJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCustomJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListCustomJobsRequest"; }; - return ListDataLabelingJobsRequest; + return ListCustomJobsRequest; })(); - v1beta1.ListDataLabelingJobsResponse = (function() { + v1beta1.ListCustomJobsResponse = (function() { /** - * Properties of a ListDataLabelingJobsResponse. + * Properties of a ListCustomJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDataLabelingJobsResponse - * @property {Array.|null} [dataLabelingJobs] ListDataLabelingJobsResponse dataLabelingJobs - * @property {string|null} [nextPageToken] ListDataLabelingJobsResponse nextPageToken + * @interface IListCustomJobsResponse + * @property {Array.|null} [customJobs] ListCustomJobsResponse customJobs + * @property {string|null} [nextPageToken] ListCustomJobsResponse nextPageToken */ /** - * Constructs a new ListDataLabelingJobsResponse. + * Constructs a new ListCustomJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataLabelingJobsResponse. - * @implements IListDataLabelingJobsResponse + * @classdesc Represents a ListCustomJobsResponse. + * @implements IListCustomJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set */ - function ListDataLabelingJobsResponse(properties) { - this.dataLabelingJobs = []; + function ListCustomJobsResponse(properties) { + this.customJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243340,88 +249050,88 @@ } /** - * ListDataLabelingJobsResponse dataLabelingJobs. - * @member {Array.} dataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * ListCustomJobsResponse customJobs. + * @member {Array.} customJobs + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance */ - ListDataLabelingJobsResponse.prototype.dataLabelingJobs = $util.emptyArray; + ListCustomJobsResponse.prototype.customJobs = $util.emptyArray; /** - * ListDataLabelingJobsResponse nextPageToken. + * ListCustomJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance */ - ListDataLabelingJobsResponse.prototype.nextPageToken = ""; + ListCustomJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * Creates a new ListCustomJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse instance */ - ListDataLabelingJobsResponse.create = function create(properties) { - return new ListDataLabelingJobsResponse(properties); + ListCustomJobsResponse.create = function create(properties) { + return new ListCustomJobsResponse(properties); }; /** - * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsResponse.encode = function encode(message, writer) { + ListCustomJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataLabelingJobs != null && message.dataLabelingJobs.length) - for (var i = 0; i < message.dataLabelingJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.customJobs != null && message.customJobs.length) + for (var i = 0; i < message.customJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsResponse.decode = function decode(reader, length) { + ListCustomJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.dataLabelingJobs && message.dataLabelingJobs.length)) - message.dataLabelingJobs = []; - message.dataLabelingJobs.push($root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32())); + if (!(message.customJobs && message.customJobs.length)) + message.customJobs = []; + message.customJobs.push($root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32())); break; } case 2: { @@ -243437,39 +249147,39 @@ }; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListCustomJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataLabelingJobsResponse message. + * Verifies a ListCustomJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataLabelingJobsResponse.verify = function verify(message) { + ListCustomJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataLabelingJobs != null && message.hasOwnProperty("dataLabelingJobs")) { - if (!Array.isArray(message.dataLabelingJobs)) - return "dataLabelingJobs: array expected"; - for (var i = 0; i < message.dataLabelingJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJobs[i]); + if (message.customJobs != null && message.hasOwnProperty("customJobs")) { + if (!Array.isArray(message.customJobs)) + return "customJobs: array expected"; + for (var i = 0; i < message.customJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJobs[i]); if (error) - return "dataLabelingJobs." + error; + return "customJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -243479,25 +249189,25 @@ }; /** - * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse */ - ListDataLabelingJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) + ListCustomJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); - if (object.dataLabelingJobs) { - if (!Array.isArray(object.dataLabelingJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: array expected"); - message.dataLabelingJobs = []; - for (var i = 0; i < object.dataLabelingJobs.length; ++i) { - if (typeof object.dataLabelingJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: object expected"); - message.dataLabelingJobs[i] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJobs[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); + if (object.customJobs) { + if (!Array.isArray(object.customJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: array expected"); + message.customJobs = []; + for (var i = 0; i < object.customJobs.length; ++i) { + if (typeof object.customJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: object expected"); + message.customJobs[i] = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJobs[i]); } } if (object.nextPageToken != null) @@ -243506,26 +249216,26 @@ }; /** - * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} message ListDataLabelingJobsResponse + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} message ListCustomJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataLabelingJobsResponse.toObject = function toObject(message, options) { + ListCustomJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.dataLabelingJobs = []; + object.customJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.dataLabelingJobs && message.dataLabelingJobs.length) { - object.dataLabelingJobs = []; - for (var j = 0; j < message.dataLabelingJobs.length; ++j) - object.dataLabelingJobs[j] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJobs[j], options); + if (message.customJobs && message.customJobs.length) { + object.customJobs = []; + for (var j = 0; j < message.customJobs.length; ++j) + object.customJobs[j] = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -243533,52 +249243,52 @@ }; /** - * Converts this ListDataLabelingJobsResponse to JSON. + * Converts this ListCustomJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance * @returns {Object.} JSON object */ - ListDataLabelingJobsResponse.prototype.toJSON = function toJSON() { + ListCustomJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDataLabelingJobsResponse + * Gets the default type url for ListCustomJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDataLabelingJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCustomJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListCustomJobsResponse"; }; - return ListDataLabelingJobsResponse; + return ListCustomJobsResponse; })(); - v1beta1.DeleteDataLabelingJobRequest = (function() { + v1beta1.DeleteCustomJobRequest = (function() { /** - * Properties of a DeleteDataLabelingJobRequest. + * Properties of a DeleteCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteDataLabelingJobRequest - * @property {string|null} [name] DeleteDataLabelingJobRequest name + * @interface IDeleteCustomJobRequest + * @property {string|null} [name] DeleteCustomJobRequest name */ /** - * Constructs a new DeleteDataLabelingJobRequest. + * Constructs a new DeleteCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteDataLabelingJobRequest. - * @implements IDeleteDataLabelingJobRequest + * @classdesc Represents a DeleteCustomJobRequest. + * @implements IDeleteCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set */ - function DeleteDataLabelingJobRequest(properties) { + function DeleteCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243586,35 +249296,35 @@ } /** - * DeleteDataLabelingJobRequest name. + * DeleteCustomJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @instance */ - DeleteDataLabelingJobRequest.prototype.name = ""; + DeleteCustomJobRequest.prototype.name = ""; /** - * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * Creates a new DeleteCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest instance */ - DeleteDataLabelingJobRequest.create = function create(properties) { - return new DeleteDataLabelingJobRequest(properties); + DeleteCustomJobRequest.create = function create(properties) { + return new DeleteCustomJobRequest(properties); }; /** - * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataLabelingJobRequest.encode = function encode(message, writer) { + DeleteCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -243623,33 +249333,33 @@ }; /** - * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataLabelingJobRequest.decode = function decode(reader, length) { + DeleteCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -243666,30 +249376,30 @@ }; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteDataLabelingJobRequest message. + * Verifies a DeleteCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteDataLabelingJobRequest.verify = function verify(message) { + DeleteCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -243699,32 +249409,32 @@ }; /** - * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest */ - DeleteDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest) + DeleteCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} message DeleteCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDataLabelingJobRequest.toObject = function toObject(message, options) { + DeleteCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -243736,52 +249446,52 @@ }; /** - * Converts this DeleteDataLabelingJobRequest to JSON. + * Converts this DeleteCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @instance * @returns {Object.} JSON object */ - DeleteDataLabelingJobRequest.prototype.toJSON = function toJSON() { + DeleteCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteDataLabelingJobRequest + * Gets the default type url for DeleteCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest"; }; - return DeleteDataLabelingJobRequest; + return DeleteCustomJobRequest; })(); - v1beta1.CancelDataLabelingJobRequest = (function() { + v1beta1.CancelCustomJobRequest = (function() { /** - * Properties of a CancelDataLabelingJobRequest. + * Properties of a CancelCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelDataLabelingJobRequest - * @property {string|null} [name] CancelDataLabelingJobRequest name + * @interface ICancelCustomJobRequest + * @property {string|null} [name] CancelCustomJobRequest name */ /** - * Constructs a new CancelDataLabelingJobRequest. + * Constructs a new CancelCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelDataLabelingJobRequest. - * @implements ICancelDataLabelingJobRequest + * @classdesc Represents a CancelCustomJobRequest. + * @implements ICancelCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set */ - function CancelDataLabelingJobRequest(properties) { + function CancelCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243789,35 +249499,35 @@ } /** - * CancelDataLabelingJobRequest name. + * CancelCustomJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @instance */ - CancelDataLabelingJobRequest.prototype.name = ""; + CancelCustomJobRequest.prototype.name = ""; /** - * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * Creates a new CancelCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest instance */ - CancelDataLabelingJobRequest.create = function create(properties) { - return new CancelDataLabelingJobRequest(properties); + CancelCustomJobRequest.create = function create(properties) { + return new CancelCustomJobRequest(properties); }; /** - * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDataLabelingJobRequest.encode = function encode(message, writer) { + CancelCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -243826,33 +249536,33 @@ }; /** - * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDataLabelingJobRequest.decode = function decode(reader, length) { + CancelCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -243869,30 +249579,30 @@ }; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelDataLabelingJobRequest message. + * Verifies a CancelCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelDataLabelingJobRequest.verify = function verify(message) { + CancelCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -243902,32 +249612,32 @@ }; /** - * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest */ - CancelDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest) + CancelCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} message CancelDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} message CancelCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelDataLabelingJobRequest.toObject = function toObject(message, options) { + CancelCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -243939,53 +249649,53 @@ }; /** - * Converts this CancelDataLabelingJobRequest to JSON. + * Converts this CancelCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @instance * @returns {Object.} JSON object */ - CancelDataLabelingJobRequest.prototype.toJSON = function toJSON() { + CancelCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelDataLabelingJobRequest + * Gets the default type url for CancelCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelCustomJobRequest"; }; - return CancelDataLabelingJobRequest; + return CancelCustomJobRequest; })(); - v1beta1.CreateHyperparameterTuningJobRequest = (function() { + v1beta1.CreateDataLabelingJobRequest = (function() { /** - * Properties of a CreateHyperparameterTuningJobRequest. + * Properties of a CreateDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateHyperparameterTuningJobRequest - * @property {string|null} [parent] CreateHyperparameterTuningJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null} [hyperparameterTuningJob] CreateHyperparameterTuningJobRequest hyperparameterTuningJob + * @interface ICreateDataLabelingJobRequest + * @property {string|null} [parent] CreateDataLabelingJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null} [dataLabelingJob] CreateDataLabelingJobRequest dataLabelingJob */ /** - * Constructs a new CreateHyperparameterTuningJobRequest. + * Constructs a new CreateDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateHyperparameterTuningJobRequest. - * @implements ICreateHyperparameterTuningJobRequest + * @classdesc Represents a CreateDataLabelingJobRequest. + * @implements ICreateDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set */ - function CreateHyperparameterTuningJobRequest(properties) { + function CreateDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243993,80 +249703,80 @@ } /** - * CreateHyperparameterTuningJobRequest parent. + * CreateDataLabelingJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @instance */ - CreateHyperparameterTuningJobRequest.prototype.parent = ""; + CreateDataLabelingJobRequest.prototype.parent = ""; /** - * CreateHyperparameterTuningJobRequest hyperparameterTuningJob. - * @member {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null|undefined} hyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * CreateDataLabelingJobRequest dataLabelingJob. + * @member {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null|undefined} dataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @instance */ - CreateHyperparameterTuningJobRequest.prototype.hyperparameterTuningJob = null; + CreateDataLabelingJobRequest.prototype.dataLabelingJob = null; /** - * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new CreateDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest instance */ - CreateHyperparameterTuningJobRequest.create = function create(properties) { - return new CreateHyperparameterTuningJobRequest(properties); + CreateDataLabelingJobRequest.create = function create(properties) { + return new CreateDataLabelingJobRequest(properties); }; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHyperparameterTuningJobRequest.encode = function encode(message, writer) { + CreateDataLabelingJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.hyperparameterTuningJob != null && Object.hasOwnProperty.call(message, "hyperparameterTuningJob")) - $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dataLabelingJob != null && Object.hasOwnProperty.call(message, "dataLabelingJob")) + $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHyperparameterTuningJobRequest.decode = function decode(reader, length) { + CreateDataLabelingJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -244075,7 +249785,7 @@ break; } case 2: { - message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32()); + message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32()); break; } default: @@ -244087,136 +249797,136 @@ }; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateHyperparameterTuningJobRequest message. + * Verifies a CreateDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateHyperparameterTuningJobRequest.verify = function verify(message) { + CreateDataLabelingJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJob); + if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJob); if (error) - return "hyperparameterTuningJob." + error; + return "dataLabelingJob." + error; } return null; }; /** - * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest */ - CreateHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest) + CreateDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.hyperparameterTuningJob != null) { - if (typeof object.hyperparameterTuningJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.hyperparameterTuningJob: object expected"); - message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJob); + if (object.dataLabelingJob != null) { + if (typeof object.dataLabelingJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.dataLabelingJob: object expected"); + message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJob); } return message; }; /** - * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} message CreateDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + CreateDataLabelingJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.hyperparameterTuningJob = null; + object.dataLabelingJob = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) - object.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJob, options); + if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) + object.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJob, options); return object; }; /** - * Converts this CreateHyperparameterTuningJobRequest to JSON. + * Converts this CreateDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - CreateHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + CreateDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateHyperparameterTuningJobRequest + * Gets the default type url for CreateDataLabelingJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest"; }; - return CreateHyperparameterTuningJobRequest; + return CreateDataLabelingJobRequest; })(); - v1beta1.GetHyperparameterTuningJobRequest = (function() { + v1beta1.GetDataLabelingJobRequest = (function() { /** - * Properties of a GetHyperparameterTuningJobRequest. + * Properties of a GetDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetHyperparameterTuningJobRequest - * @property {string|null} [name] GetHyperparameterTuningJobRequest name + * @interface IGetDataLabelingJobRequest + * @property {string|null} [name] GetDataLabelingJobRequest name */ /** - * Constructs a new GetHyperparameterTuningJobRequest. + * Constructs a new GetDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetHyperparameterTuningJobRequest. - * @implements IGetHyperparameterTuningJobRequest + * @classdesc Represents a GetDataLabelingJobRequest. + * @implements IGetDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set */ - function GetHyperparameterTuningJobRequest(properties) { + function GetDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244224,35 +249934,35 @@ } /** - * GetHyperparameterTuningJobRequest name. + * GetDataLabelingJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @instance */ - GetHyperparameterTuningJobRequest.prototype.name = ""; + GetDataLabelingJobRequest.prototype.name = ""; /** - * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new GetDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest instance */ - GetHyperparameterTuningJobRequest.create = function create(properties) { - return new GetHyperparameterTuningJobRequest(properties); + GetDataLabelingJobRequest.create = function create(properties) { + return new GetDataLabelingJobRequest(properties); }; /** - * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHyperparameterTuningJobRequest.encode = function encode(message, writer) { + GetDataLabelingJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -244261,33 +249971,33 @@ }; /** - * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHyperparameterTuningJobRequest.decode = function decode(reader, length) { + GetDataLabelingJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -244304,30 +250014,30 @@ }; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetHyperparameterTuningJobRequest message. + * Verifies a GetDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetHyperparameterTuningJobRequest.verify = function verify(message) { + GetDataLabelingJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -244337,32 +250047,32 @@ }; /** - * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest */ - GetHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest) + GetDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} message GetDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + GetDataLabelingJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -244374,56 +250084,57 @@ }; /** - * Converts this GetHyperparameterTuningJobRequest to JSON. + * Converts this GetDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - GetHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + GetDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetHyperparameterTuningJobRequest + * Gets the default type url for GetDataLabelingJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest"; }; - return GetHyperparameterTuningJobRequest; + return GetDataLabelingJobRequest; })(); - v1beta1.ListHyperparameterTuningJobsRequest = (function() { + v1beta1.ListDataLabelingJobsRequest = (function() { /** - * Properties of a ListHyperparameterTuningJobsRequest. + * Properties of a ListDataLabelingJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListHyperparameterTuningJobsRequest - * @property {string|null} [parent] ListHyperparameterTuningJobsRequest parent - * @property {string|null} [filter] ListHyperparameterTuningJobsRequest filter - * @property {number|null} [pageSize] ListHyperparameterTuningJobsRequest pageSize - * @property {string|null} [pageToken] ListHyperparameterTuningJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListHyperparameterTuningJobsRequest readMask + * @interface IListDataLabelingJobsRequest + * @property {string|null} [parent] ListDataLabelingJobsRequest parent + * @property {string|null} [filter] ListDataLabelingJobsRequest filter + * @property {number|null} [pageSize] ListDataLabelingJobsRequest pageSize + * @property {string|null} [pageToken] ListDataLabelingJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListDataLabelingJobsRequest readMask + * @property {string|null} [orderBy] ListDataLabelingJobsRequest orderBy */ /** - * Constructs a new ListHyperparameterTuningJobsRequest. + * Constructs a new ListDataLabelingJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListHyperparameterTuningJobsRequest. - * @implements IListHyperparameterTuningJobsRequest + * @classdesc Represents a ListDataLabelingJobsRequest. + * @implements IListDataLabelingJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set */ - function ListHyperparameterTuningJobsRequest(properties) { + function ListDataLabelingJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244431,67 +250142,75 @@ } /** - * ListHyperparameterTuningJobsRequest parent. + * ListDataLabelingJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.parent = ""; + ListDataLabelingJobsRequest.prototype.parent = ""; /** - * ListHyperparameterTuningJobsRequest filter. + * ListDataLabelingJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.filter = ""; + ListDataLabelingJobsRequest.prototype.filter = ""; /** - * ListHyperparameterTuningJobsRequest pageSize. + * ListDataLabelingJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.pageSize = 0; + ListDataLabelingJobsRequest.prototype.pageSize = 0; /** - * ListHyperparameterTuningJobsRequest pageToken. + * ListDataLabelingJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.pageToken = ""; + ListDataLabelingJobsRequest.prototype.pageToken = ""; /** - * ListHyperparameterTuningJobsRequest readMask. + * ListDataLabelingJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.readMask = null; + ListDataLabelingJobsRequest.prototype.readMask = null; /** - * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * ListDataLabelingJobsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListDataLabelingJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest instance */ - ListHyperparameterTuningJobsRequest.create = function create(properties) { - return new ListHyperparameterTuningJobsRequest(properties); + ListDataLabelingJobsRequest.create = function create(properties) { + return new ListDataLabelingJobsRequest(properties); }; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsRequest.encode = function encode(message, writer) { + ListDataLabelingJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -244504,37 +250223,39 @@ writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDataLabelingJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsRequest.decode = function decode(reader, length) { + ListDataLabelingJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -244558,6 +250279,10 @@ message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } + case 6: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -244567,30 +250292,30 @@ }; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListDataLabelingJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHyperparameterTuningJobsRequest message. + * Verifies a ListDataLabelingJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHyperparameterTuningJobsRequest.verify = function verify(message) { + ListDataLabelingJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -244610,21 +250335,24 @@ if (error) return "readMask." + error; } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest */ - ListHyperparameterTuningJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest) + ListDataLabelingJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -244635,22 +250363,24 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} message ListDataLabelingJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHyperparameterTuningJobsRequest.toObject = function toObject(message, options) { + ListDataLabelingJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -244660,6 +250390,7 @@ object.pageSize = 0; object.pageToken = ""; object.readMask = null; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -244671,58 +250402,60 @@ object.pageToken = message.pageToken; if (message.readMask != null && message.hasOwnProperty("readMask")) object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this ListHyperparameterTuningJobsRequest to JSON. + * Converts this ListDataLabelingJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance * @returns {Object.} JSON object */ - ListHyperparameterTuningJobsRequest.prototype.toJSON = function toJSON() { + ListDataLabelingJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListHyperparameterTuningJobsRequest + * Gets the default type url for ListDataLabelingJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListHyperparameterTuningJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDataLabelingJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest"; }; - return ListHyperparameterTuningJobsRequest; + return ListDataLabelingJobsRequest; })(); - v1beta1.ListHyperparameterTuningJobsResponse = (function() { + v1beta1.ListDataLabelingJobsResponse = (function() { /** - * Properties of a ListHyperparameterTuningJobsResponse. + * Properties of a ListDataLabelingJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListHyperparameterTuningJobsResponse - * @property {Array.|null} [hyperparameterTuningJobs] ListHyperparameterTuningJobsResponse hyperparameterTuningJobs - * @property {string|null} [nextPageToken] ListHyperparameterTuningJobsResponse nextPageToken + * @interface IListDataLabelingJobsResponse + * @property {Array.|null} [dataLabelingJobs] ListDataLabelingJobsResponse dataLabelingJobs + * @property {string|null} [nextPageToken] ListDataLabelingJobsResponse nextPageToken */ /** - * Constructs a new ListHyperparameterTuningJobsResponse. + * Constructs a new ListDataLabelingJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListHyperparameterTuningJobsResponse. - * @implements IListHyperparameterTuningJobsResponse + * @classdesc Represents a ListDataLabelingJobsResponse. + * @implements IListDataLabelingJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set */ - function ListHyperparameterTuningJobsResponse(properties) { - this.hyperparameterTuningJobs = []; + function ListDataLabelingJobsResponse(properties) { + this.dataLabelingJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244730,88 +250463,88 @@ } /** - * ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. - * @member {Array.} hyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * ListDataLabelingJobsResponse dataLabelingJobs. + * @member {Array.} dataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @instance */ - ListHyperparameterTuningJobsResponse.prototype.hyperparameterTuningJobs = $util.emptyArray; + ListDataLabelingJobsResponse.prototype.dataLabelingJobs = $util.emptyArray; /** - * ListHyperparameterTuningJobsResponse nextPageToken. + * ListDataLabelingJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @instance */ - ListHyperparameterTuningJobsResponse.prototype.nextPageToken = ""; + ListDataLabelingJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * Creates a new ListDataLabelingJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse instance */ - ListHyperparameterTuningJobsResponse.create = function create(properties) { - return new ListHyperparameterTuningJobsResponse(properties); + ListDataLabelingJobsResponse.create = function create(properties) { + return new ListDataLabelingJobsResponse(properties); }; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsResponse.encode = function encode(message, writer) { + ListDataLabelingJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.hyperparameterTuningJobs != null && message.hyperparameterTuningJobs.length) - for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.dataLabelingJobs != null && message.dataLabelingJobs.length) + for (var i = 0; i < message.dataLabelingJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListDataLabelingJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsResponse.decode = function decode(reader, length) { + ListDataLabelingJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length)) - message.hyperparameterTuningJobs = []; - message.hyperparameterTuningJobs.push($root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32())); + if (!(message.dataLabelingJobs && message.dataLabelingJobs.length)) + message.dataLabelingJobs = []; + message.dataLabelingJobs.push($root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32())); break; } case 2: { @@ -244827,39 +250560,39 @@ }; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListDataLabelingJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHyperparameterTuningJobsResponse message. + * Verifies a ListDataLabelingJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHyperparameterTuningJobsResponse.verify = function verify(message) { + ListDataLabelingJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.hyperparameterTuningJobs != null && message.hasOwnProperty("hyperparameterTuningJobs")) { - if (!Array.isArray(message.hyperparameterTuningJobs)) - return "hyperparameterTuningJobs: array expected"; - for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJobs[i]); + if (message.dataLabelingJobs != null && message.hasOwnProperty("dataLabelingJobs")) { + if (!Array.isArray(message.dataLabelingJobs)) + return "dataLabelingJobs: array expected"; + for (var i = 0; i < message.dataLabelingJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJobs[i]); if (error) - return "hyperparameterTuningJobs." + error; + return "dataLabelingJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -244869,25 +250602,25 @@ }; /** - * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse */ - ListHyperparameterTuningJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) + ListDataLabelingJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); - if (object.hyperparameterTuningJobs) { - if (!Array.isArray(object.hyperparameterTuningJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: array expected"); - message.hyperparameterTuningJobs = []; - for (var i = 0; i < object.hyperparameterTuningJobs.length; ++i) { - if (typeof object.hyperparameterTuningJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: object expected"); - message.hyperparameterTuningJobs[i] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJobs[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); + if (object.dataLabelingJobs) { + if (!Array.isArray(object.dataLabelingJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: array expected"); + message.dataLabelingJobs = []; + for (var i = 0; i < object.dataLabelingJobs.length; ++i) { + if (typeof object.dataLabelingJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: object expected"); + message.dataLabelingJobs[i] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJobs[i]); } } if (object.nextPageToken != null) @@ -244896,26 +250629,26 @@ }; /** - * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} message ListDataLabelingJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHyperparameterTuningJobsResponse.toObject = function toObject(message, options) { + ListDataLabelingJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.hyperparameterTuningJobs = []; + object.dataLabelingJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length) { - object.hyperparameterTuningJobs = []; - for (var j = 0; j < message.hyperparameterTuningJobs.length; ++j) - object.hyperparameterTuningJobs[j] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJobs[j], options); + if (message.dataLabelingJobs && message.dataLabelingJobs.length) { + object.dataLabelingJobs = []; + for (var j = 0; j < message.dataLabelingJobs.length; ++j) + object.dataLabelingJobs[j] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -244923,52 +250656,52 @@ }; /** - * Converts this ListHyperparameterTuningJobsResponse to JSON. + * Converts this ListDataLabelingJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @instance * @returns {Object.} JSON object */ - ListHyperparameterTuningJobsResponse.prototype.toJSON = function toJSON() { + ListDataLabelingJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListHyperparameterTuningJobsResponse + * Gets the default type url for ListDataLabelingJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListHyperparameterTuningJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDataLabelingJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse"; }; - return ListHyperparameterTuningJobsResponse; + return ListDataLabelingJobsResponse; })(); - v1beta1.DeleteHyperparameterTuningJobRequest = (function() { + v1beta1.DeleteDataLabelingJobRequest = (function() { /** - * Properties of a DeleteHyperparameterTuningJobRequest. + * Properties of a DeleteDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteHyperparameterTuningJobRequest - * @property {string|null} [name] DeleteHyperparameterTuningJobRequest name + * @interface IDeleteDataLabelingJobRequest + * @property {string|null} [name] DeleteDataLabelingJobRequest name */ /** - * Constructs a new DeleteHyperparameterTuningJobRequest. + * Constructs a new DeleteDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteHyperparameterTuningJobRequest. - * @implements IDeleteHyperparameterTuningJobRequest + * @classdesc Represents a DeleteDataLabelingJobRequest. + * @implements IDeleteDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set */ - function DeleteHyperparameterTuningJobRequest(properties) { + function DeleteDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244976,35 +250709,35 @@ } /** - * DeleteHyperparameterTuningJobRequest name. + * DeleteDataLabelingJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @instance */ - DeleteHyperparameterTuningJobRequest.prototype.name = ""; + DeleteDataLabelingJobRequest.prototype.name = ""; /** - * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest instance */ - DeleteHyperparameterTuningJobRequest.create = function create(properties) { - return new DeleteHyperparameterTuningJobRequest(properties); + DeleteDataLabelingJobRequest.create = function create(properties) { + return new DeleteDataLabelingJobRequest(properties); }; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteHyperparameterTuningJobRequest.encode = function encode(message, writer) { + DeleteDataLabelingJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -245013,33 +250746,33 @@ }; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteHyperparameterTuningJobRequest.decode = function decode(reader, length) { + DeleteDataLabelingJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -245056,30 +250789,30 @@ }; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteHyperparameterTuningJobRequest message. + * Verifies a DeleteDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteHyperparameterTuningJobRequest.verify = function verify(message) { + DeleteDataLabelingJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -245089,32 +250822,32 @@ }; /** - * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest */ - DeleteHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest) + DeleteDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + DeleteDataLabelingJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -245126,52 +250859,52 @@ }; /** - * Converts this DeleteHyperparameterTuningJobRequest to JSON. + * Converts this DeleteDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - DeleteHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + DeleteDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteHyperparameterTuningJobRequest + * Gets the default type url for DeleteDataLabelingJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest"; }; - return DeleteHyperparameterTuningJobRequest; + return DeleteDataLabelingJobRequest; })(); - v1beta1.CancelHyperparameterTuningJobRequest = (function() { + v1beta1.CancelDataLabelingJobRequest = (function() { /** - * Properties of a CancelHyperparameterTuningJobRequest. + * Properties of a CancelDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelHyperparameterTuningJobRequest - * @property {string|null} [name] CancelHyperparameterTuningJobRequest name + * @interface ICancelDataLabelingJobRequest + * @property {string|null} [name] CancelDataLabelingJobRequest name */ /** - * Constructs a new CancelHyperparameterTuningJobRequest. + * Constructs a new CancelDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelHyperparameterTuningJobRequest. - * @implements ICancelHyperparameterTuningJobRequest + * @classdesc Represents a CancelDataLabelingJobRequest. + * @implements ICancelDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set */ - function CancelHyperparameterTuningJobRequest(properties) { + function CancelDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -245179,35 +250912,35 @@ } /** - * CancelHyperparameterTuningJobRequest name. + * CancelDataLabelingJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @instance */ - CancelHyperparameterTuningJobRequest.prototype.name = ""; + CancelDataLabelingJobRequest.prototype.name = ""; /** - * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new CancelDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest instance */ - CancelHyperparameterTuningJobRequest.create = function create(properties) { - return new CancelHyperparameterTuningJobRequest(properties); + CancelDataLabelingJobRequest.create = function create(properties) { + return new CancelDataLabelingJobRequest(properties); }; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelHyperparameterTuningJobRequest.encode = function encode(message, writer) { + CancelDataLabelingJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -245216,33 +250949,33 @@ }; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelHyperparameterTuningJobRequest.decode = function decode(reader, length) { + CancelDataLabelingJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -245259,30 +250992,30 @@ }; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelHyperparameterTuningJobRequest message. + * Verifies a CancelDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelHyperparameterTuningJobRequest.verify = function verify(message) { + CancelDataLabelingJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -245292,32 +251025,32 @@ }; /** - * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest */ - CancelHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest) + CancelDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} message CancelDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + CancelDataLabelingJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -245329,53 +251062,53 @@ }; /** - * Converts this CancelHyperparameterTuningJobRequest to JSON. + * Converts this CancelDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - CancelHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + CancelDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelHyperparameterTuningJobRequest + * Gets the default type url for CancelDataLabelingJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest"; }; - return CancelHyperparameterTuningJobRequest; + return CancelDataLabelingJobRequest; })(); - v1beta1.CreateBatchPredictionJobRequest = (function() { + v1beta1.CreateHyperparameterTuningJobRequest = (function() { /** - * Properties of a CreateBatchPredictionJobRequest. + * Properties of a CreateHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateBatchPredictionJobRequest - * @property {string|null} [parent] CreateBatchPredictionJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob + * @interface ICreateHyperparameterTuningJobRequest + * @property {string|null} [parent] CreateHyperparameterTuningJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null} [hyperparameterTuningJob] CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new CreateHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateBatchPredictionJobRequest. - * @implements ICreateBatchPredictionJobRequest + * @classdesc Represents a CreateHyperparameterTuningJobRequest. + * @implements ICreateHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set */ - function CreateBatchPredictionJobRequest(properties) { + function CreateHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -245383,80 +251116,80 @@ } /** - * CreateBatchPredictionJobRequest parent. + * CreateHyperparameterTuningJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance */ - CreateBatchPredictionJobRequest.prototype.parent = ""; + CreateHyperparameterTuningJobRequest.prototype.parent = ""; /** - * CreateBatchPredictionJobRequest batchPredictionJob. - * @member {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null|undefined} batchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * CreateHyperparameterTuningJobRequest hyperparameterTuningJob. + * @member {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null|undefined} hyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance */ - CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; + CreateHyperparameterTuningJobRequest.prototype.hyperparameterTuningJob = null; /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest instance */ - CreateBatchPredictionJobRequest.create = function create(properties) { - return new CreateBatchPredictionJobRequest(properties); + CreateHyperparameterTuningJobRequest.create = function create(properties) { + return new CreateHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateBatchPredictionJobRequest.encode = function encode(message, writer) { + CreateHyperparameterTuningJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) - $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.hyperparameterTuningJob != null && Object.hasOwnProperty.call(message, "hyperparameterTuningJob")) + $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateBatchPredictionJobRequest.decode = function decode(reader, length) { + CreateHyperparameterTuningJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -245465,7 +251198,7 @@ break; } case 2: { - message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32()); + message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32()); break; } default: @@ -245477,136 +251210,136 @@ }; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateBatchPredictionJobRequest message. + * Verifies a CreateHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateBatchPredictionJobRequest.verify = function verify(message) { + CreateHyperparameterTuningJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJob); + if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJob); if (error) - return "batchPredictionJob." + error; + return "hyperparameterTuningJob." + error; } return null; }; /** - * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest */ - CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest) + CreateHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.batchPredictionJob != null) { - if (typeof object.batchPredictionJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); - message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJob); + if (object.hyperparameterTuningJob != null) { + if (typeof object.hyperparameterTuningJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.hyperparameterTuningJob: object expected"); + message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJob); } return message; }; /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { + CreateHyperparameterTuningJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.batchPredictionJob = null; + object.hyperparameterTuningJob = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) - object.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJob, options); + if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) + object.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJob, options); return object; }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this CreateHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + CreateHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateBatchPredictionJobRequest + * Gets the default type url for CreateHyperparameterTuningJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest"; }; - return CreateBatchPredictionJobRequest; + return CreateHyperparameterTuningJobRequest; })(); - v1beta1.GetBatchPredictionJobRequest = (function() { + v1beta1.GetHyperparameterTuningJobRequest = (function() { /** - * Properties of a GetBatchPredictionJobRequest. + * Properties of a GetHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetBatchPredictionJobRequest - * @property {string|null} [name] GetBatchPredictionJobRequest name + * @interface IGetHyperparameterTuningJobRequest + * @property {string|null} [name] GetHyperparameterTuningJobRequest name */ /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new GetHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetBatchPredictionJobRequest. - * @implements IGetBatchPredictionJobRequest + * @classdesc Represents a GetHyperparameterTuningJobRequest. + * @implements IGetHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set */ - function GetBatchPredictionJobRequest(properties) { + function GetHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -245614,35 +251347,35 @@ } /** - * GetBatchPredictionJobRequest name. + * GetHyperparameterTuningJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @instance */ - GetBatchPredictionJobRequest.prototype.name = ""; + GetHyperparameterTuningJobRequest.prototype.name = ""; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest instance */ - GetBatchPredictionJobRequest.create = function create(properties) { - return new GetBatchPredictionJobRequest(properties); + GetHyperparameterTuningJobRequest.create = function create(properties) { + return new GetHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encode = function encode(message, writer) { + GetHyperparameterTuningJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -245651,33 +251384,33 @@ }; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decode = function decode(reader, length) { + GetHyperparameterTuningJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -245694,30 +251427,30 @@ }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies a GetHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetBatchPredictionJobRequest.verify = function verify(message) { + GetHyperparameterTuningJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -245727,32 +251460,32 @@ }; /** - * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest */ - GetBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest) + GetHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBatchPredictionJobRequest.toObject = function toObject(message, options) { + GetHyperparameterTuningJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -245764,56 +251497,56 @@ }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this GetHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + GetHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetBatchPredictionJobRequest + * Gets the default type url for GetHyperparameterTuningJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest"; }; - return GetBatchPredictionJobRequest; + return GetHyperparameterTuningJobRequest; })(); - v1beta1.ListBatchPredictionJobsRequest = (function() { + v1beta1.ListHyperparameterTuningJobsRequest = (function() { /** - * Properties of a ListBatchPredictionJobsRequest. + * Properties of a ListHyperparameterTuningJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListBatchPredictionJobsRequest - * @property {string|null} [parent] ListBatchPredictionJobsRequest parent - * @property {string|null} [filter] ListBatchPredictionJobsRequest filter - * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize - * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask + * @interface IListHyperparameterTuningJobsRequest + * @property {string|null} [parent] ListHyperparameterTuningJobsRequest parent + * @property {string|null} [filter] ListHyperparameterTuningJobsRequest filter + * @property {number|null} [pageSize] ListHyperparameterTuningJobsRequest pageSize + * @property {string|null} [pageToken] ListHyperparameterTuningJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListHyperparameterTuningJobsRequest readMask */ /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new ListHyperparameterTuningJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListBatchPredictionJobsRequest. - * @implements IListBatchPredictionJobsRequest + * @classdesc Represents a ListHyperparameterTuningJobsRequest. + * @implements IListHyperparameterTuningJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set */ - function ListBatchPredictionJobsRequest(properties) { + function ListHyperparameterTuningJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -245821,67 +251554,67 @@ } /** - * ListBatchPredictionJobsRequest parent. + * ListHyperparameterTuningJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.parent = ""; + ListHyperparameterTuningJobsRequest.prototype.parent = ""; /** - * ListBatchPredictionJobsRequest filter. + * ListHyperparameterTuningJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.filter = ""; + ListHyperparameterTuningJobsRequest.prototype.filter = ""; /** - * ListBatchPredictionJobsRequest pageSize. + * ListHyperparameterTuningJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.pageSize = 0; + ListHyperparameterTuningJobsRequest.prototype.pageSize = 0; /** - * ListBatchPredictionJobsRequest pageToken. + * ListHyperparameterTuningJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.pageToken = ""; + ListHyperparameterTuningJobsRequest.prototype.pageToken = ""; /** - * ListBatchPredictionJobsRequest readMask. + * ListHyperparameterTuningJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.readMask = null; + ListHyperparameterTuningJobsRequest.prototype.readMask = null; /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest instance */ - ListBatchPredictionJobsRequest.create = function create(properties) { - return new ListBatchPredictionJobsRequest(properties); + ListHyperparameterTuningJobsRequest.create = function create(properties) { + return new ListHyperparameterTuningJobsRequest(properties); }; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encode = function encode(message, writer) { + ListHyperparameterTuningJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -245898,33 +251631,33 @@ }; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListHyperparameterTuningJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decode = function decode(reader, length) { + ListHyperparameterTuningJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -245957,30 +251690,30 @@ }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListHyperparameterTuningJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a ListHyperparameterTuningJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsRequest.verify = function verify(message) { + ListHyperparameterTuningJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -246004,17 +251737,17 @@ }; /** - * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest */ - ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest) + ListHyperparameterTuningJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -246025,22 +251758,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { + ListHyperparameterTuningJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -246065,54 +251798,54 @@ }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this ListHyperparameterTuningJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { + ListHyperparameterTuningJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListBatchPredictionJobsRequest + * Gets the default type url for ListHyperparameterTuningJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListBatchPredictionJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListHyperparameterTuningJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest"; }; - return ListBatchPredictionJobsRequest; + return ListHyperparameterTuningJobsRequest; })(); - v1beta1.ListBatchPredictionJobsResponse = (function() { + v1beta1.ListHyperparameterTuningJobsResponse = (function() { /** - * Properties of a ListBatchPredictionJobsResponse. + * Properties of a ListHyperparameterTuningJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListBatchPredictionJobsResponse - * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs - * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken + * @interface IListHyperparameterTuningJobsResponse + * @property {Array.|null} [hyperparameterTuningJobs] ListHyperparameterTuningJobsResponse hyperparameterTuningJobs + * @property {string|null} [nextPageToken] ListHyperparameterTuningJobsResponse nextPageToken */ /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new ListHyperparameterTuningJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListBatchPredictionJobsResponse. - * @implements IListBatchPredictionJobsResponse + * @classdesc Represents a ListHyperparameterTuningJobsResponse. + * @implements IListHyperparameterTuningJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set */ - function ListBatchPredictionJobsResponse(properties) { - this.batchPredictionJobs = []; + function ListHyperparameterTuningJobsResponse(properties) { + this.hyperparameterTuningJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246120,88 +251853,88 @@ } /** - * ListBatchPredictionJobsResponse batchPredictionJobs. - * @member {Array.} batchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. + * @member {Array.} hyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance */ - ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; + ListHyperparameterTuningJobsResponse.prototype.hyperparameterTuningJobs = $util.emptyArray; /** - * ListBatchPredictionJobsResponse nextPageToken. + * ListHyperparameterTuningJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance */ - ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; + ListHyperparameterTuningJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse instance */ - ListBatchPredictionJobsResponse.create = function create(properties) { - return new ListBatchPredictionJobsResponse(properties); + ListHyperparameterTuningJobsResponse.create = function create(properties) { + return new ListHyperparameterTuningJobsResponse(properties); }; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encode = function encode(message, writer) { + ListHyperparameterTuningJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) - for (var i = 0; i < message.batchPredictionJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.hyperparameterTuningJobs != null && message.hyperparameterTuningJobs.length) + for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListHyperparameterTuningJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decode = function decode(reader, length) { + ListHyperparameterTuningJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) - message.batchPredictionJobs = []; - message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32())); + if (!(message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length)) + message.hyperparameterTuningJobs = []; + message.hyperparameterTuningJobs.push($root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32())); break; } case 2: { @@ -246217,39 +251950,39 @@ }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListHyperparameterTuningJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a ListHyperparameterTuningJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsResponse.verify = function verify(message) { + ListHyperparameterTuningJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { - if (!Array.isArray(message.batchPredictionJobs)) - return "batchPredictionJobs: array expected"; - for (var i = 0; i < message.batchPredictionJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); + if (message.hyperparameterTuningJobs != null && message.hasOwnProperty("hyperparameterTuningJobs")) { + if (!Array.isArray(message.hyperparameterTuningJobs)) + return "hyperparameterTuningJobs: array expected"; + for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJobs[i]); if (error) - return "batchPredictionJobs." + error; + return "hyperparameterTuningJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -246259,25 +251992,25 @@ }; /** - * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse */ - ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) + ListHyperparameterTuningJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); - if (object.batchPredictionJobs) { - if (!Array.isArray(object.batchPredictionJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); - message.batchPredictionJobs = []; - for (var i = 0; i < object.batchPredictionJobs.length; ++i) { - if (typeof object.batchPredictionJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); - message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); + if (object.hyperparameterTuningJobs) { + if (!Array.isArray(object.hyperparameterTuningJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: array expected"); + message.hyperparameterTuningJobs = []; + for (var i = 0; i < object.hyperparameterTuningJobs.length; ++i) { + if (typeof object.hyperparameterTuningJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: object expected"); + message.hyperparameterTuningJobs[i] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJobs[i]); } } if (object.nextPageToken != null) @@ -246286,26 +252019,26 @@ }; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { + ListHyperparameterTuningJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.batchPredictionJobs = []; + object.hyperparameterTuningJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.batchPredictionJobs && message.batchPredictionJobs.length) { - object.batchPredictionJobs = []; - for (var j = 0; j < message.batchPredictionJobs.length; ++j) - object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); + if (message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length) { + object.hyperparameterTuningJobs = []; + for (var j = 0; j < message.hyperparameterTuningJobs.length; ++j) + object.hyperparameterTuningJobs[j] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -246313,52 +252046,52 @@ }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this ListHyperparameterTuningJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { + ListHyperparameterTuningJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListBatchPredictionJobsResponse + * Gets the default type url for ListHyperparameterTuningJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListBatchPredictionJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListHyperparameterTuningJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse"; }; - return ListBatchPredictionJobsResponse; + return ListHyperparameterTuningJobsResponse; })(); - v1beta1.DeleteBatchPredictionJobRequest = (function() { + v1beta1.DeleteHyperparameterTuningJobRequest = (function() { /** - * Properties of a DeleteBatchPredictionJobRequest. + * Properties of a DeleteHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteBatchPredictionJobRequest - * @property {string|null} [name] DeleteBatchPredictionJobRequest name + * @interface IDeleteHyperparameterTuningJobRequest + * @property {string|null} [name] DeleteHyperparameterTuningJobRequest name */ /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new DeleteHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteBatchPredictionJobRequest. - * @implements IDeleteBatchPredictionJobRequest + * @classdesc Represents a DeleteHyperparameterTuningJobRequest. + * @implements IDeleteHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set */ - function DeleteBatchPredictionJobRequest(properties) { + function DeleteHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246366,35 +252099,35 @@ } /** - * DeleteBatchPredictionJobRequest name. + * DeleteHyperparameterTuningJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @instance */ - DeleteBatchPredictionJobRequest.prototype.name = ""; + DeleteHyperparameterTuningJobRequest.prototype.name = ""; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest instance */ - DeleteBatchPredictionJobRequest.create = function create(properties) { - return new DeleteBatchPredictionJobRequest(properties); + DeleteHyperparameterTuningJobRequest.create = function create(properties) { + return new DeleteHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { + DeleteHyperparameterTuningJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -246403,33 +252136,33 @@ }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decode = function decode(reader, length) { + DeleteHyperparameterTuningJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -246446,30 +252179,30 @@ }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies a DeleteHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteBatchPredictionJobRequest.verify = function verify(message) { + DeleteHyperparameterTuningJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -246479,32 +252212,32 @@ }; /** - * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest */ - DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest) + DeleteHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { + DeleteHyperparameterTuningJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -246516,52 +252249,52 @@ }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this DeleteHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + DeleteHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteBatchPredictionJobRequest + * Gets the default type url for DeleteHyperparameterTuningJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest"; }; - return DeleteBatchPredictionJobRequest; + return DeleteHyperparameterTuningJobRequest; })(); - v1beta1.CancelBatchPredictionJobRequest = (function() { + v1beta1.CancelHyperparameterTuningJobRequest = (function() { /** - * Properties of a CancelBatchPredictionJobRequest. + * Properties of a CancelHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelBatchPredictionJobRequest - * @property {string|null} [name] CancelBatchPredictionJobRequest name + * @interface ICancelHyperparameterTuningJobRequest + * @property {string|null} [name] CancelHyperparameterTuningJobRequest name */ /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new CancelHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelBatchPredictionJobRequest. - * @implements ICancelBatchPredictionJobRequest + * @classdesc Represents a CancelHyperparameterTuningJobRequest. + * @implements ICancelHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set */ - function CancelBatchPredictionJobRequest(properties) { + function CancelHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246569,35 +252302,35 @@ } /** - * CancelBatchPredictionJobRequest name. + * CancelHyperparameterTuningJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @instance */ - CancelBatchPredictionJobRequest.prototype.name = ""; + CancelHyperparameterTuningJobRequest.prototype.name = ""; /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest instance */ - CancelBatchPredictionJobRequest.create = function create(properties) { - return new CancelBatchPredictionJobRequest(properties); + CancelHyperparameterTuningJobRequest.create = function create(properties) { + return new CancelHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encode = function encode(message, writer) { + CancelHyperparameterTuningJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -246606,33 +252339,33 @@ }; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decode = function decode(reader, length) { + CancelHyperparameterTuningJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -246649,30 +252382,30 @@ }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies a CancelHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelBatchPredictionJobRequest.verify = function verify(message) { + CancelHyperparameterTuningJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -246682,32 +252415,32 @@ }; /** - * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest */ - CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest) + CancelHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { + CancelHyperparameterTuningJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -246719,53 +252452,284 @@ }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this CancelHyperparameterTuningJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @instance + * @returns {Object.} JSON object + */ + CancelHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CancelHyperparameterTuningJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CancelHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest"; + }; + + return CancelHyperparameterTuningJobRequest; + })(); + + v1beta1.CreateBatchPredictionJobRequest = (function() { + + /** + * Properties of a CreateBatchPredictionJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateBatchPredictionJobRequest + * @property {string|null} [parent] CreateBatchPredictionJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob + */ + + /** + * Constructs a new CreateBatchPredictionJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateBatchPredictionJobRequest. + * @implements ICreateBatchPredictionJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + */ + function CreateBatchPredictionJobRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateBatchPredictionJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @instance + */ + CreateBatchPredictionJobRequest.prototype.parent = ""; + + /** + * CreateBatchPredictionJobRequest batchPredictionJob. + * @member {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null|undefined} batchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @instance + */ + CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; + + /** + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance + */ + CreateBatchPredictionJobRequest.create = function create(properties) { + return new CreateBatchPredictionJobRequest(properties); + }; + + /** + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateBatchPredictionJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) + $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateBatchPredictionJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateBatchPredictionJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateBatchPredictionJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJob); + if (error) + return "batchPredictionJob." + error; + } + return null; + }; + + /** + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + */ + CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.batchPredictionJob != null) { + if (typeof object.batchPredictionJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); + message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJob); + } + return message; + }; + + /** + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.batchPredictionJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) + object.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJob, options); + return object; + }; + + /** + * Converts this CreateBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelBatchPredictionJobRequest + * Gets the default type url for CreateBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest"; }; - return CancelBatchPredictionJobRequest; + return CreateBatchPredictionJobRequest; })(); - v1beta1.CreateModelDeploymentMonitoringJobRequest = (function() { + v1beta1.GetBatchPredictionJobRequest = (function() { /** - * Properties of a CreateModelDeploymentMonitoringJobRequest. + * Properties of a GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateModelDeploymentMonitoringJobRequest - * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @interface IGetBatchPredictionJobRequest + * @property {string|null} [name] GetBatchPredictionJobRequest name */ /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. - * @implements ICreateModelDeploymentMonitoringJobRequest + * @classdesc Represents a GetBatchPredictionJobRequest. + * @implements IGetBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set */ - function CreateModelDeploymentMonitoringJobRequest(properties) { + function GetBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246773,89 +252737,75 @@ } /** - * CreateModelDeploymentMonitoringJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest - * @instance - */ - CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; - - /** - * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * GetBatchPredictionJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @instance */ - CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + GetBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance */ - CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new CreateModelDeploymentMonitoringJobRequest(properties); + GetBatchPredictionJobRequest.create = function create(properties) { + return new GetBatchPredictionJobRequest(properties); }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + GetBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + GetBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -246867,144 +252817,126 @@ }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * Verifies a GetBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateModelDeploymentMonitoringJobRequest.verify = function verify(message) { + GetBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); - if (error) - return "modelDeploymentMonitoringJob." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest */ - CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) + GetBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); - } + var message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + GetBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.modelDeploymentMonitoringJob = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateModelDeploymentMonitoringJobRequest + * Gets the default type url for GetBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest"; }; - return CreateModelDeploymentMonitoringJobRequest; + return GetBatchPredictionJobRequest; })(); - v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { + v1beta1.ListBatchPredictionJobsRequest = (function() { /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Properties of a ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest - * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob - * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId - * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName - * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives - * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize - * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken - * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime - * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime + * @interface IListBatchPredictionJobsRequest + * @property {string|null} [parent] ListBatchPredictionJobsRequest parent + * @property {string|null} [filter] ListBatchPredictionJobsRequest filter + * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize + * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask */ /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Constructs a new ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest + * @classdesc Represents a ListBatchPredictionJobsRequest. + * @implements IListBatchPredictionJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set */ - function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { - this.objectives = []; + function ListBatchPredictionJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247012,176 +252944,131 @@ } /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. - * @member {string} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ListBatchPredictionJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; + ListBatchPredictionJobsRequest.prototype.parent = ""; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. - * @member {Array.} objectives - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ListBatchPredictionJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; + ListBatchPredictionJobsRequest.prototype.filter = ""; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. + * ListBatchPredictionJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; + ListBatchPredictionJobsRequest.prototype.pageSize = 0; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. + * ListBatchPredictionJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; + ListBatchPredictionJobsRequest.prototype.pageToken = ""; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ListBatchPredictionJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + ListBatchPredictionJobsRequest.prototype.readMask = null; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); + ListBatchPredictionJobsRequest.create = function create(properties) { + return new ListBatchPredictionJobsRequest(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encode = function encode(message, writer) { + ListBatchPredictionJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); - if (message.objectives != null && message.objectives.length) - for (var i = 0; i < message.objectives.length; ++i) - $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decode = function decode(reader, length) { + ListBatchPredictionJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.modelDeploymentMonitoringJob = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.deployedModelId = reader.string(); + message.filter = reader.string(); break; } case 3: { - message.featureDisplayName = reader.string(); - break; - } - case 4: { - if (!(message.objectives && message.objectives.length)) - message.objectives = []; - message.objectives.push($root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); - break; - } - case 5: { message.pageSize = reader.int32(); break; } - case 6: { + case 4: { message.pageToken = reader.string(); break; } - case 7: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -247193,464 +253080,162 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a ListBatchPredictionJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify = function verify(message) { + ListBatchPredictionJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - if (!$util.isString(message.modelDeploymentMonitoringJob)) - return "modelDeploymentMonitoringJob: string expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - if (!$util.isString(message.featureDisplayName)) - return "featureDisplayName: string expected"; - if (message.objectives != null && message.hasOwnProperty("objectives")) { - if (!Array.isArray(message.objectives)) - return "objectives: array expected"; - for (var i = 0; i < message.objectives.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); - if (error) - return "objectives." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "endTime." + error; + return "readMask." + error; } return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); - if (object.modelDeploymentMonitoringJob != null) - message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.featureDisplayName != null) - message.featureDisplayName = String(object.featureDisplayName); - if (object.objectives) { - if (!Array.isArray(object.objectives)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); - message.objectives = []; - for (var i = 0; i < object.objectives.length; ++i) { - if (typeof object.objectives[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); - message.objectives[i] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.toObject = function toObject(message, options) { + ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.objectives = []; if (options.defaults) { - object.modelDeploymentMonitoringJob = ""; - object.deployedModelId = ""; - object.featureDisplayName = ""; + object.parent = ""; + object.filter = ""; object.pageSize = 0; object.pageToken = ""; - object.startTime = null; - object.endTime = null; - } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - object.featureDisplayName = message.featureDisplayName; - if (message.objectives && message.objectives.length) { - object.objectives = []; - for (var j = 0; j < message.objectives.length; ++j) - object.objectives[j] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); + object.readMask = null; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Gets the default type url for ListBatchPredictionJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBatchPredictionJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest"; }; - SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { - - /** - * Properties of a StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @interface IStatsAnomaliesObjective - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type - * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount - */ - - /** - * Constructs a new StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @classdesc Represents a StatsAnomaliesObjective. - * @implements IStatsAnomaliesObjective - * @constructor - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - */ - function StatsAnomaliesObjective(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StatsAnomaliesObjective type. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} type - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - */ - StatsAnomaliesObjective.prototype.type = 0; - - /** - * StatsAnomaliesObjective topFeatureCount. - * @member {number} topFeatureCount - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - */ - StatsAnomaliesObjective.prototype.topFeatureCount = 0; - - /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance - */ - StatsAnomaliesObjective.create = function create(properties) { - return new StatsAnomaliesObjective(properties); - }; - - /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatsAnomaliesObjective.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); - return writer; - }; - - /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatsAnomaliesObjective.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.int32(); - break; - } - case 4: { - message.topFeatureCount = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StatsAnomaliesObjective message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StatsAnomaliesObjective.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - if (!$util.isInteger(message.topFeatureCount)) - return "topFeatureCount: integer expected"; - return null; - }; - - /** - * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - */ - StatsAnomaliesObjective.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - switch (object.type) { - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "RAW_FEATURE_SKEW": - case 1: - message.type = 1; - break; - case "RAW_FEATURE_DRIFT": - case 2: - message.type = 2; - break; - case "FEATURE_ATTRIBUTION_SKEW": - case 3: - message.type = 3; - break; - case "FEATURE_ATTRIBUTION_DRIFT": - case 4: - message.type = 4; - break; - } - if (object.topFeatureCount != null) - message.topFeatureCount = object.topFeatureCount | 0; - return message; - }; - - /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StatsAnomaliesObjective.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.topFeatureCount = 0; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - object.topFeatureCount = message.topFeatureCount; - return object; - }; - - /** - * Converts this StatsAnomaliesObjective to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - * @returns {Object.} JSON object - */ - StatsAnomaliesObjective.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for StatsAnomaliesObjective - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - StatsAnomaliesObjective.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective"; - }; - - return StatsAnomaliesObjective; - })(); - - return SearchModelDeploymentMonitoringStatsAnomaliesRequest; + return ListBatchPredictionJobsRequest; })(); - v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { + v1beta1.ListBatchPredictionJobsResponse = (function() { /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Properties of a ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse - * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats - * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken + * @interface IListBatchPredictionJobsResponse + * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs + * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken */ /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @classdesc Represents a ListBatchPredictionJobsResponse. + * @implements IListBatchPredictionJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set */ - function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { - this.monitoringStats = []; + function ListBatchPredictionJobsResponse(properties) { + this.batchPredictionJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247658,88 +253243,88 @@ } /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. - * @member {Array.} monitoringStats - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * ListBatchPredictionJobsResponse batchPredictionJobs. + * @member {Array.} batchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; + ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. + * ListBatchPredictionJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; + ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); + ListBatchPredictionJobsResponse.create = function create(properties) { + return new ListBatchPredictionJobsResponse(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encode = function encode(message, writer) { + ListBatchPredictionJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.monitoringStats != null && message.monitoringStats.length) - for (var i = 0; i < message.monitoringStats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) + for (var i = 0; i < message.batchPredictionJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decode = function decode(reader, length) { + ListBatchPredictionJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.monitoringStats && message.monitoringStats.length)) - message.monitoringStats = []; - message.monitoringStats.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); + if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) + message.batchPredictionJobs = []; + message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32())); break; } case 2: { @@ -247755,39 +253340,39 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies a ListBatchPredictionJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify = function verify(message) { + ListBatchPredictionJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { - if (!Array.isArray(message.monitoringStats)) - return "monitoringStats: array expected"; - for (var i = 0; i < message.monitoringStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); + if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { + if (!Array.isArray(message.batchPredictionJobs)) + return "batchPredictionJobs: array expected"; + for (var i = 0; i < message.batchPredictionJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); if (error) - return "monitoringStats." + error; + return "batchPredictionJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -247797,25 +253382,25 @@ }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); - if (object.monitoringStats) { - if (!Array.isArray(object.monitoringStats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); - message.monitoringStats = []; - for (var i = 0; i < object.monitoringStats.length; ++i) { - if (typeof object.monitoringStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); - message.monitoringStats[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); + if (object.batchPredictionJobs) { + if (!Array.isArray(object.batchPredictionJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); + message.batchPredictionJobs = []; + for (var i = 0; i < object.batchPredictionJobs.length; ++i) { + if (typeof object.batchPredictionJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); + message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); } } if (object.nextPageToken != null) @@ -247824,26 +253409,26 @@ }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { + ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.monitoringStats = []; + object.batchPredictionJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.monitoringStats && message.monitoringStats.length) { - object.monitoringStats = []; - for (var j = 0; j < message.monitoringStats.length; ++j) - object.monitoringStats[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); + if (message.batchPredictionJobs && message.batchPredictionJobs.length) { + object.batchPredictionJobs = []; + for (var j = 0; j < message.batchPredictionJobs.length; ++j) + object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -247851,52 +253436,52 @@ }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Gets the default type url for ListBatchPredictionJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBatchPredictionJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse"; }; - return SearchModelDeploymentMonitoringStatsAnomaliesResponse; + return ListBatchPredictionJobsResponse; })(); - v1beta1.GetModelDeploymentMonitoringJobRequest = (function() { + v1beta1.DeleteBatchPredictionJobRequest = (function() { /** - * Properties of a GetModelDeploymentMonitoringJobRequest. + * Properties of a DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetModelDeploymentMonitoringJobRequest - * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name + * @interface IDeleteBatchPredictionJobRequest + * @property {string|null} [name] DeleteBatchPredictionJobRequest name */ /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. - * @implements IGetModelDeploymentMonitoringJobRequest + * @classdesc Represents a DeleteBatchPredictionJobRequest. + * @implements IDeleteBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set */ - function GetModelDeploymentMonitoringJobRequest(properties) { + function DeleteBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247904,35 +253489,35 @@ } /** - * GetModelDeploymentMonitoringJobRequest name. + * DeleteBatchPredictionJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @instance */ - GetModelDeploymentMonitoringJobRequest.prototype.name = ""; + DeleteBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance */ - GetModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new GetModelDeploymentMonitoringJobRequest(properties); + DeleteBatchPredictionJobRequest.create = function create(properties) { + return new DeleteBatchPredictionJobRequest(properties); }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -247941,33 +253526,33 @@ }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + DeleteBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -247984,30 +253569,30 @@ }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies a DeleteBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { + DeleteBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -248017,32 +253602,32 @@ }; /** - * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest - */ - GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + */ + DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -248054,56 +253639,52 @@ }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * Gets the default type url for DeleteBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest"; }; - return GetModelDeploymentMonitoringJobRequest; + return DeleteBatchPredictionJobRequest; })(); - v1beta1.ListModelDeploymentMonitoringJobsRequest = (function() { + v1beta1.CancelBatchPredictionJobRequest = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsRequest. + * Properties of a CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelDeploymentMonitoringJobsRequest - * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent - * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter - * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize - * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask + * @interface ICancelBatchPredictionJobRequest + * @property {string|null} [name] CancelBatchPredictionJobRequest name */ /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. - * @implements IListModelDeploymentMonitoringJobsRequest + * @classdesc Represents a CancelBatchPredictionJobRequest. + * @implements ICancelBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsRequest(properties) { + function CancelBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248111,131 +253692,75 @@ } /** - * ListModelDeploymentMonitoringJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest - * @instance - */ - ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; - - /** - * ListModelDeploymentMonitoringJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest - * @instance - */ - ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; - - /** - * ListModelDeploymentMonitoringJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest - * @instance - */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; - - /** - * ListModelDeploymentMonitoringJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest - * @instance - */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; - - /** - * ListModelDeploymentMonitoringJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * CancelBatchPredictionJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; + CancelBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance */ - ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsRequest(properties); + CancelBatchPredictionJobRequest.create = function create(properties) { + return new CancelBatchPredictionJobRequest(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { + CancelBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decode = function decode(reader, length) { + CancelBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -248247,162 +253772,123 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { + CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a CancelBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { + CancelBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest */ - ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest + * @param {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { + CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this CancelBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { + CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsRequest + * Gets the default type url for CancelBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelDeploymentMonitoringJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest"; }; - return ListModelDeploymentMonitoringJobsRequest; + return CancelBatchPredictionJobRequest; })(); - v1beta1.ListModelDeploymentMonitoringJobsResponse = (function() { + v1beta1.CreateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsResponse. + * Properties of a CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelDeploymentMonitoringJobsResponse - * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs - * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken + * @interface ICreateModelDeploymentMonitoringJobRequest + * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. - * @implements IListModelDeploymentMonitoringJobsResponse + * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. + * @implements ICreateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsResponse(properties) { - this.modelDeploymentMonitoringJobs = []; + function CreateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248410,92 +253896,89 @@ } /** - * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. - * @member {Array.} modelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * CreateModelDeploymentMonitoringJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; + CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; /** - * ListModelDeploymentMonitoringJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; + CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance */ - ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsResponse(properties); + CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new CreateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { + CreateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decode = function decode(reader, length) { + CreateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) - message.modelDeploymentMonitoringJobs = []; - message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); break; } default: @@ -248507,149 +253990,144 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a CreateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { + CreateModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { - if (!Array.isArray(message.modelDeploymentMonitoringJobs)) - return "modelDeploymentMonitoringJobs: array expected"; - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); - if (error) - return "modelDeploymentMonitoringJobs." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); + if (error) + return "modelDeploymentMonitoringJob." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest */ - ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) + CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); - if (object.modelDeploymentMonitoringJobs) { - if (!Array.isArray(object.modelDeploymentMonitoringJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); - message.modelDeploymentMonitoringJobs = []; - for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { - if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); - message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse + * @param {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { + CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.modelDeploymentMonitoringJobs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { - object.modelDeploymentMonitoringJobs = []; - for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) - object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); + if (options.defaults) { + object.parent = ""; + object.modelDeploymentMonitoringJob = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); return object; }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { + CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for CreateModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelDeploymentMonitoringJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest"; }; - return ListModelDeploymentMonitoringJobsResponse; + return CreateModelDeploymentMonitoringJobRequest; })(); - v1beta1.UpdateModelDeploymentMonitoringJobRequest = (function() { + v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { /** - * Properties of an UpdateModelDeploymentMonitoringJobRequest. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateModelDeploymentMonitoringJobRequest - * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest + * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob + * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId + * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName + * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives + * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize + * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken + * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime + * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. - * @implements IUpdateModelDeploymentMonitoringJobRequest + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set */ - function UpdateModelDeploymentMonitoringJobRequest(properties) { + function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { + this.objectives = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248657,89 +254135,176 @@ } /** - * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. + * @member {string} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; /** - * UpdateModelDeploymentMonitoringJobRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. + * @member {Array.} objectives + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + + /** + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobRequest(properties); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); + if (message.objectives != null && message.objectives.length) + for (var i = 0; i < message.objectives.length; ++i) + $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + message.modelDeploymentMonitoringJob = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.deployedModelId = reader.string(); + break; + } + case 3: { + message.featureDisplayName = reader.string(); + break; + } + case 4: { + if (!(message.objectives && message.objectives.length)) + message.objectives = []; + message.objectives.push($root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); + break; + } + case 5: { + message.pageSize = reader.int32(); + break; + } + case 6: { + message.pageToken = reader.string(); + break; + } + case 7: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -248751,141 +254316,464 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + if (!$util.isString(message.modelDeploymentMonitoringJob)) + return "modelDeploymentMonitoringJob: string expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + if (!$util.isString(message.featureDisplayName)) + return "featureDisplayName: string expected"; + if (message.objectives != null && message.hasOwnProperty("objectives")) { + if (!Array.isArray(message.objectives)) + return "objectives: array expected"; + for (var i = 0; i < message.objectives.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); + if (error) + return "objectives." + error; + } + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); if (error) - return "modelDeploymentMonitoringJob." + error; + return "startTime." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); if (error) - return "updateMask." + error; + return "endTime." + error; } return null; }; /** - * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest */ - UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) + SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + if (object.modelDeploymentMonitoringJob != null) + message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.featureDisplayName != null) + message.featureDisplayName = String(object.featureDisplayName); + if (object.objectives) { + if (!Array.isArray(object.objectives)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); + message.objectives = []; + for (var i = 0; i < object.objectives.length; ++i) { + if (typeof object.objectives[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); + message.objectives[i] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); + } } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.objectives = []; if (options.defaults) { - object.modelDeploymentMonitoringJob = null; - object.updateMask = null; + object.modelDeploymentMonitoringJob = ""; + object.deployedModelId = ""; + object.featureDisplayName = ""; + object.pageSize = 0; + object.pageToken = ""; + object.startTime = null; + object.endTime = null; } if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + object.featureDisplayName = message.featureDisplayName; + if (message.objectives && message.objectives.length) { + object.objectives = []; + for (var j = 0; j < message.objectives.length; ++j) + object.objectives[j] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; - /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + * @returns {Object.} JSON object + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest"; + }; + + SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { + + /** + * Properties of a StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @interface IStatsAnomaliesObjective + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type + * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount + */ + + /** + * Constructs a new StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @classdesc Represents a StatsAnomaliesObjective. + * @implements IStatsAnomaliesObjective + * @constructor + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + */ + function StatsAnomaliesObjective(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StatsAnomaliesObjective type. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} type + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + */ + StatsAnomaliesObjective.prototype.type = 0; + + /** + * StatsAnomaliesObjective topFeatureCount. + * @member {number} topFeatureCount + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + */ + StatsAnomaliesObjective.prototype.topFeatureCount = 0; + + /** + * Creates a new StatsAnomaliesObjective instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance + */ + StatsAnomaliesObjective.create = function create(properties) { + return new StatsAnomaliesObjective(properties); + }; + + /** + * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatsAnomaliesObjective.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); + return writer; + }; + + /** + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatsAnomaliesObjective.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 4: { + message.topFeatureCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StatsAnomaliesObjective message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StatsAnomaliesObjective.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + if (!$util.isInteger(message.topFeatureCount)) + return "topFeatureCount: integer expected"; + return null; + }; + + /** + * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + */ + StatsAnomaliesObjective.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + switch (object.type) { + case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "RAW_FEATURE_SKEW": + case 1: + message.type = 1; + break; + case "RAW_FEATURE_DRIFT": + case 2: + message.type = 2; + break; + case "FEATURE_ATTRIBUTION_SKEW": + case 3: + message.type = 3; + break; + case "FEATURE_ATTRIBUTION_DRIFT": + case 4: + message.type = 4; + break; + } + if (object.topFeatureCount != null) + message.topFeatureCount = object.topFeatureCount | 0; + return message; + }; + + /** + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StatsAnomaliesObjective.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; + object.topFeatureCount = 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + object.topFeatureCount = message.topFeatureCount; + return object; + }; + + /** + * Converts this StatsAnomaliesObjective to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + * @returns {Object.} JSON object + */ + StatsAnomaliesObjective.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UpdateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest"; - }; + /** + * Gets the default type url for StatsAnomaliesObjective + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StatsAnomaliesObjective.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective"; + }; - return UpdateModelDeploymentMonitoringJobRequest; + return StatsAnomaliesObjective; + })(); + + return SearchModelDeploymentMonitoringStatsAnomaliesRequest; })(); - v1beta1.DeleteModelDeploymentMonitoringJobRequest = (function() { + v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { /** - * Properties of a DeleteModelDeploymentMonitoringJobRequest. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteModelDeploymentMonitoringJobRequest - * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats + * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. - * @implements IDeleteModelDeploymentMonitoringJobRequest + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set */ - function DeleteModelDeploymentMonitoringJobRequest(properties) { + function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { + this.monitoringStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248893,75 +254781,92 @@ } /** - * DeleteModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. + * @member {Array.} monitoringStats + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance */ - DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new DeleteModelDeploymentMonitoringJobRequest(properties); + SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.monitoringStats != null && message.monitoringStats.length) + for (var i = 0; i < message.monitoringStats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.monitoringStats && message.monitoringStats.length)) + message.monitoringStats = []; + message.monitoringStats.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -248973,122 +254878,148 @@ }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { + if (!Array.isArray(message.monitoringStats)) + return "monitoringStats: array expected"; + for (var i = 0; i < message.monitoringStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); + if (error) + return "monitoringStats." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) + SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + if (object.monitoringStats) { + if (!Array.isArray(object.monitoringStats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); + message.monitoringStats = []; + for (var i = 0; i < object.monitoringStats.length; ++i) { + if (typeof object.monitoringStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); + message.monitoringStats[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.monitoringStats = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.monitoringStats && message.monitoringStats.length) { + object.monitoringStats = []; + for (var j = 0; j < message.monitoringStats.length; ++j) + object.monitoringStats[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance * @returns {Object.} JSON object */ - DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse"; }; - return DeleteModelDeploymentMonitoringJobRequest; + return SearchModelDeploymentMonitoringStatsAnomaliesResponse; })(); - v1beta1.PauseModelDeploymentMonitoringJobRequest = (function() { + v1beta1.GetModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a PauseModelDeploymentMonitoringJobRequest. + * Properties of a GetModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPauseModelDeploymentMonitoringJobRequest - * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name + * @interface IGetModelDeploymentMonitoringJobRequest + * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. - * @implements IPauseModelDeploymentMonitoringJobRequest + * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. + * @implements IGetModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function PauseModelDeploymentMonitoringJobRequest(properties) { + function GetModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249096,35 +255027,35 @@ } /** - * PauseModelDeploymentMonitoringJobRequest name. + * GetModelDeploymentMonitoringJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @instance */ - PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; + GetModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance */ - PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new PauseModelDeploymentMonitoringJobRequest(properties); + GetModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new GetModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -249133,33 +255064,33 @@ }; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PauseModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + GetModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -249176,30 +255107,30 @@ }; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * Verifies a GetModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { + GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -249209,32 +255140,32 @@ }; /** - * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest */ - PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) + GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -249246,52 +255177,56 @@ }; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PauseModelDeploymentMonitoringJobRequest + * Gets the default type url for GetModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PauseModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest"; }; - return PauseModelDeploymentMonitoringJobRequest; + return GetModelDeploymentMonitoringJobRequest; })(); - v1beta1.ResumeModelDeploymentMonitoringJobRequest = (function() { + v1beta1.ListModelDeploymentMonitoringJobsRequest = (function() { /** - * Properties of a ResumeModelDeploymentMonitoringJobRequest. + * Properties of a ListModelDeploymentMonitoringJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IResumeModelDeploymentMonitoringJobRequest - * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name + * @interface IListModelDeploymentMonitoringJobsRequest + * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent + * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter + * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize + * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask */ /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * Constructs a new ListModelDeploymentMonitoringJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. - * @implements IResumeModelDeploymentMonitoringJobRequest + * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. + * @implements IListModelDeploymentMonitoringJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set */ - function ResumeModelDeploymentMonitoringJobRequest(properties) { + function ListModelDeploymentMonitoringJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249299,75 +255234,131 @@ } /** - * ResumeModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * ListModelDeploymentMonitoringJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; + ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * ListModelDeploymentMonitoringJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @instance + */ + ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; + + /** + * ListModelDeploymentMonitoringJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @instance + */ + ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; + + /** + * ListModelDeploymentMonitoringJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @instance + */ + ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; + + /** + * ListModelDeploymentMonitoringJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @instance + */ + ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; + + /** + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance */ - ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new ResumeModelDeploymentMonitoringJobRequest(properties); + ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsRequest(properties); }; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -249379,122 +255370,162 @@ }; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. + * Verifies a ListModelDeploymentMonitoringJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { + ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } return null; }; /** - * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest */ - ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) + ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } return message; }; /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance * @returns {Object.} JSON object */ - ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest + * Gets the default type url for ListModelDeploymentMonitoringJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResumeModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelDeploymentMonitoringJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest"; }; - return ResumeModelDeploymentMonitoringJobRequest; + return ListModelDeploymentMonitoringJobsRequest; })(); - v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { + v1beta1.ListModelDeploymentMonitoringJobsResponse = (function() { /** - * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. + * Properties of a ListModelDeploymentMonitoringJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata + * @interface IListModelDeploymentMonitoringJobsResponse + * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs + * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken */ /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * Constructs a new ListModelDeploymentMonitoringJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. - * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata + * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. + * @implements IListModelDeploymentMonitoringJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set */ - function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { + function ListModelDeploymentMonitoringJobsResponse(properties) { + this.modelDeploymentMonitoringJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249502,75 +255533,92 @@ } /** - * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. + * @member {Array.} modelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; + ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * ListModelDeploymentMonitoringJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @instance + */ + ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); + ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsResponse(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) + message.modelDeploymentMonitoringJobs = []; + message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -249582,172 +255630,149 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * Verifies a ListModelDeploymentMonitoringJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { + ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; + if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { + if (!Array.isArray(message.modelDeploymentMonitoringJobs)) + return "modelDeploymentMonitoringJobs: array expected"; + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); + if (error) + return "modelDeploymentMonitoringJobs." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse */ - UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) + ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); + if (object.modelDeploymentMonitoringJobs) { + if (!Array.isArray(object.modelDeploymentMonitoringJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); + message.modelDeploymentMonitoringJobs = []; + for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { + if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); + message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.modelDeploymentMonitoringJobs = []; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + object.nextPageToken = ""; + if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { + object.modelDeploymentMonitoringJobs = []; + for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) + object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance * @returns {Object.} JSON object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * Gets the default type url for ListModelDeploymentMonitoringJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateModelDeploymentMonitoringJobOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelDeploymentMonitoringJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse"; }; - return UpdateModelDeploymentMonitoringJobOperationMetadata; - })(); - - /** - * ModelDeploymentMonitoringObjectiveType enum. - * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType - * @enum {number} - * @property {number} MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED=0 MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED value - * @property {number} RAW_FEATURE_SKEW=1 RAW_FEATURE_SKEW value - * @property {number} RAW_FEATURE_DRIFT=2 RAW_FEATURE_DRIFT value - * @property {number} FEATURE_ATTRIBUTION_SKEW=3 FEATURE_ATTRIBUTION_SKEW value - * @property {number} FEATURE_ATTRIBUTION_DRIFT=4 FEATURE_ATTRIBUTION_DRIFT value - */ - v1beta1.ModelDeploymentMonitoringObjectiveType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RAW_FEATURE_SKEW"] = 1; - values[valuesById[2] = "RAW_FEATURE_DRIFT"] = 2; - values[valuesById[3] = "FEATURE_ATTRIBUTION_SKEW"] = 3; - values[valuesById[4] = "FEATURE_ATTRIBUTION_DRIFT"] = 4; - return values; + return ListModelDeploymentMonitoringJobsResponse; })(); - v1beta1.ModelDeploymentMonitoringJob = (function() { + v1beta1.UpdateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringJob. + * Properties of an UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelDeploymentMonitoringJob - * @property {string|null} [name] ModelDeploymentMonitoringJob name - * @property {string|null} [displayName] ModelDeploymentMonitoringJob displayName - * @property {string|null} [endpoint] ModelDeploymentMonitoringJob endpoint - * @property {google.cloud.aiplatform.v1beta1.JobState|null} [state] ModelDeploymentMonitoringJob state - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null} [scheduleState] ModelDeploymentMonitoringJob scheduleState - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null} [latestMonitoringPipelineMetadata] ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata - * @property {Array.|null} [modelDeploymentMonitoringObjectiveConfigs] ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs - * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null} [modelDeploymentMonitoringScheduleConfig] ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig - * @property {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null} [loggingSamplingStrategy] ModelDeploymentMonitoringJob loggingSamplingStrategy - * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null} [modelMonitoringAlertConfig] ModelDeploymentMonitoringJob modelMonitoringAlertConfig - * @property {string|null} [predictInstanceSchemaUri] ModelDeploymentMonitoringJob predictInstanceSchemaUri - * @property {google.protobuf.IValue|null} [samplePredictInstance] ModelDeploymentMonitoringJob samplePredictInstance - * @property {string|null} [analysisInstanceSchemaUri] ModelDeploymentMonitoringJob analysisInstanceSchemaUri - * @property {Array.|null} [bigqueryTables] ModelDeploymentMonitoringJob bigqueryTables - * @property {google.protobuf.IDuration|null} [logTtl] ModelDeploymentMonitoringJob logTtl - * @property {Object.|null} [labels] ModelDeploymentMonitoringJob labels - * @property {google.protobuf.ITimestamp|null} [createTime] ModelDeploymentMonitoringJob createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] ModelDeploymentMonitoringJob updateTime - * @property {google.protobuf.ITimestamp|null} [nextScheduleTime] ModelDeploymentMonitoringJob nextScheduleTime - * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [statsAnomaliesBaseDirectory] ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] ModelDeploymentMonitoringJob encryptionSpec - * @property {boolean|null} [enableMonitoringPipelineLogs] ModelDeploymentMonitoringJob enableMonitoringPipelineLogs - * @property {google.rpc.IStatus|null} [error] ModelDeploymentMonitoringJob error + * @interface IUpdateModelDeploymentMonitoringJobRequest + * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask */ /** - * Constructs a new ModelDeploymentMonitoringJob. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelDeploymentMonitoringJob. - * @implements IModelDeploymentMonitoringJob + * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. + * @implements IUpdateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringJob(properties) { - this.modelDeploymentMonitoringObjectiveConfigs = []; - this.bigqueryTables = []; - this.labels = {}; + function UpdateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249755,409 +255780,89 @@ } /** - * ModelDeploymentMonitoringJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.name = ""; - - /** - * ModelDeploymentMonitoringJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.displayName = ""; - - /** - * ModelDeploymentMonitoringJob endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.endpoint = ""; - - /** - * ModelDeploymentMonitoringJob state. - * @member {google.cloud.aiplatform.v1beta1.JobState} state - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.state = 0; - - /** - * ModelDeploymentMonitoringJob scheduleState. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState} scheduleState - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.scheduleState = 0; - - /** - * ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null|undefined} latestMonitoringPipelineMetadata - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.latestMonitoringPipelineMetadata = null; - - /** - * ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. - * @member {Array.} modelDeploymentMonitoringObjectiveConfigs - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringObjectiveConfigs = $util.emptyArray; - - /** - * ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null|undefined} modelDeploymentMonitoringScheduleConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringScheduleConfig = null; - - /** - * ModelDeploymentMonitoringJob loggingSamplingStrategy. - * @member {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null|undefined} loggingSamplingStrategy - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.loggingSamplingStrategy = null; - - /** - * ModelDeploymentMonitoringJob modelMonitoringAlertConfig. - * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null|undefined} modelMonitoringAlertConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.modelMonitoringAlertConfig = null; - - /** - * ModelDeploymentMonitoringJob predictInstanceSchemaUri. - * @member {string} predictInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.predictInstanceSchemaUri = ""; - - /** - * ModelDeploymentMonitoringJob samplePredictInstance. - * @member {google.protobuf.IValue|null|undefined} samplePredictInstance - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.samplePredictInstance = null; - - /** - * ModelDeploymentMonitoringJob analysisInstanceSchemaUri. - * @member {string} analysisInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.analysisInstanceSchemaUri = ""; - - /** - * ModelDeploymentMonitoringJob bigqueryTables. - * @member {Array.} bigqueryTables - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.bigqueryTables = $util.emptyArray; - - /** - * ModelDeploymentMonitoringJob logTtl. - * @member {google.protobuf.IDuration|null|undefined} logTtl - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.logTtl = null; - - /** - * ModelDeploymentMonitoringJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.labels = $util.emptyObject; - - /** - * ModelDeploymentMonitoringJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.createTime = null; - - /** - * ModelDeploymentMonitoringJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.updateTime = null; - - /** - * ModelDeploymentMonitoringJob nextScheduleTime. - * @member {google.protobuf.ITimestamp|null|undefined} nextScheduleTime - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.nextScheduleTime = null; - - /** - * ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. - * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.statsAnomaliesBaseDirectory = null; - - /** - * ModelDeploymentMonitoringJob encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.encryptionSpec = null; - - /** - * ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. - * @member {boolean} enableMonitoringPipelineLogs - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.enableMonitoringPipelineLogs = false; + UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; /** - * ModelDeploymentMonitoringJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * UpdateModelDeploymentMonitoringJobRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.error = null; + UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob instance - */ - ModelDeploymentMonitoringJob.create = function create(properties) { - return new ModelDeploymentMonitoringJob(properties); + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance + */ + UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.endpoint); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.scheduleState != null && Object.hasOwnProperty.call(message, "scheduleState")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scheduleState); - if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.modelDeploymentMonitoringObjectiveConfigs.length) - for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.encode(message.modelDeploymentMonitoringObjectiveConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.modelDeploymentMonitoringScheduleConfig != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringScheduleConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.encode(message.modelDeploymentMonitoringScheduleConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) - $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.predictInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "predictInstanceSchemaUri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.predictInstanceSchemaUri); - if (message.bigqueryTables != null && message.bigqueryTables.length) - for (var i = 0; i < message.bigqueryTables.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.encode(message.bigqueryTables[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.nextScheduleTime != null && Object.hasOwnProperty.call(message, "nextScheduleTime")) - $root.google.protobuf.Timestamp.encode(message.nextScheduleTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.modelMonitoringAlertConfig != null && Object.hasOwnProperty.call(message, "modelMonitoringAlertConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.encode(message.modelMonitoringAlertConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.analysisInstanceSchemaUri); - if (message.logTtl != null && Object.hasOwnProperty.call(message, "logTtl")) - $root.google.protobuf.Duration.encode(message.logTtl, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.samplePredictInstance != null && Object.hasOwnProperty.call(message, "samplePredictInstance")) - $root.google.protobuf.Value.encode(message.samplePredictInstance, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.statsAnomaliesBaseDirectory != null && Object.hasOwnProperty.call(message, "statsAnomaliesBaseDirectory")) - $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.statsAnomaliesBaseDirectory, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.enableMonitoringPipelineLogs != null && Object.hasOwnProperty.call(message, "enableMonitoringPipelineLogs")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.enableMonitoringPipelineLogs); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.latestMonitoringPipelineMetadata != null && Object.hasOwnProperty.call(message, "latestMonitoringPipelineMetadata")) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); break; } case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.endpoint = reader.string(); - break; - } - case 4: { - message.state = reader.int32(); - break; - } - case 5: { - message.scheduleState = reader.int32(); - break; - } - case 25: { - message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.decode(reader, reader.uint32()); - break; - } - case 6: { - if (!(message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length)) - message.modelDeploymentMonitoringObjectiveConfigs = []; - message.modelDeploymentMonitoringObjectiveConfigs.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.decode(reader, reader.uint32())); - break; - } - case 7: { - message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.decode(reader, reader.uint32()); - break; - } - case 8: { - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.decode(reader, reader.uint32()); - break; - } - case 15: { - message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); - break; - } - case 9: { - message.predictInstanceSchemaUri = reader.string(); - break; - } - case 19: { - message.samplePredictInstance = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 16: { - message.analysisInstanceSchemaUri = reader.string(); - break; - } - case 10: { - if (!(message.bigqueryTables && message.bigqueryTables.length)) - message.bigqueryTables = []; - message.bigqueryTables.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.decode(reader, reader.uint32())); - break; - } - case 17: { - message.logTtl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 11: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 12: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 13: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 14: { - message.nextScheduleTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 20: { - message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 21: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } - case 22: { - message.enableMonitoringPipelineLogs = reader.bool(); - break; - } - case 23: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -250169,748 +255874,141 @@ }; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringJob message. + * Verifies an UpdateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringJob.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) - switch (message.scheduleState) { - default: - return "scheduleState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify(message.latestMonitoringPipelineMetadata); - if (error) - return "latestMonitoringPipelineMetadata." + error; - } - if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.hasOwnProperty("modelDeploymentMonitoringObjectiveConfigs")) { - if (!Array.isArray(message.modelDeploymentMonitoringObjectiveConfigs)) - return "modelDeploymentMonitoringObjectiveConfigs: array expected"; - for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify(message.modelDeploymentMonitoringObjectiveConfigs[i]); - if (error) - return "modelDeploymentMonitoringObjectiveConfigs." + error; - } - } - if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify(message.modelDeploymentMonitoringScheduleConfig); - if (error) - return "modelDeploymentMonitoringScheduleConfig." + error; - } - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { - var error = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.verify(message.loggingSamplingStrategy); - if (error) - return "loggingSamplingStrategy." + error; - } - if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify(message.modelMonitoringAlertConfig); - if (error) - return "modelMonitoringAlertConfig." + error; - } - if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) - if (!$util.isString(message.predictInstanceSchemaUri)) - return "predictInstanceSchemaUri: string expected"; - if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) { - var error = $root.google.protobuf.Value.verify(message.samplePredictInstance); - if (error) - return "samplePredictInstance." + error; - } - if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) - if (!$util.isString(message.analysisInstanceSchemaUri)) - return "analysisInstanceSchemaUri: string expected"; - if (message.bigqueryTables != null && message.hasOwnProperty("bigqueryTables")) { - if (!Array.isArray(message.bigqueryTables)) - return "bigqueryTables: array expected"; - for (var i = 0; i < message.bigqueryTables.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify(message.bigqueryTables[i]); - if (error) - return "bigqueryTables." + error; - } - } - if (message.logTtl != null && message.hasOwnProperty("logTtl")) { - var error = $root.google.protobuf.Duration.verify(message.logTtl); - if (error) - return "logTtl." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.nextScheduleTime); - if (error) - return "nextScheduleTime." + error; - } - if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) { - var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.statsAnomaliesBaseDirectory); - if (error) - return "statsAnomaliesBaseDirectory." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); if (error) - return "encryptionSpec." + error; + return "modelDeploymentMonitoringJob." + error; } - if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) - if (typeof message.enableMonitoringPipelineLogs !== "boolean") - return "enableMonitoringPipelineLogs: boolean expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "error." + error; + return "updateMask." + error; } return null; }; /** - * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest */ - ModelDeploymentMonitoringJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) + UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - switch (object.state) { - case "JOB_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "JOB_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "JOB_STATE_PENDING": - case 2: - message.state = 2; - break; - case "JOB_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "JOB_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "JOB_STATE_FAILED": - case 5: - message.state = 5; - break; - case "JOB_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "JOB_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "JOB_STATE_PAUSED": - case 8: - message.state = 8; - break; - case "JOB_STATE_EXPIRED": - case 9: - message.state = 9; - break; - case "JOB_STATE_UPDATING": - case 10: - message.state = 10; - break; - } - switch (object.scheduleState) { - case "MONITORING_SCHEDULE_STATE_UNSPECIFIED": - case 0: - message.scheduleState = 0; - break; - case "PENDING": - case 1: - message.scheduleState = 1; - break; - case "OFFLINE": - case 2: - message.scheduleState = 2; - break; - case "RUNNING": - case 3: - message.scheduleState = 3; - break; - } - if (object.latestMonitoringPipelineMetadata != null) { - if (typeof object.latestMonitoringPipelineMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.latestMonitoringPipelineMetadata: object expected"); - message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.fromObject(object.latestMonitoringPipelineMetadata); - } - if (object.modelDeploymentMonitoringObjectiveConfigs) { - if (!Array.isArray(object.modelDeploymentMonitoringObjectiveConfigs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: array expected"); - message.modelDeploymentMonitoringObjectiveConfigs = []; - for (var i = 0; i < object.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { - if (typeof object.modelDeploymentMonitoringObjectiveConfigs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: object expected"); - message.modelDeploymentMonitoringObjectiveConfigs[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.fromObject(object.modelDeploymentMonitoringObjectiveConfigs[i]); - } - } - if (object.modelDeploymentMonitoringScheduleConfig != null) { - if (typeof object.modelDeploymentMonitoringScheduleConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringScheduleConfig: object expected"); - message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.fromObject(object.modelDeploymentMonitoringScheduleConfig); - } - if (object.loggingSamplingStrategy != null) { - if (typeof object.loggingSamplingStrategy !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.loggingSamplingStrategy: object expected"); - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); - } - if (object.modelMonitoringAlertConfig != null) { - if (typeof object.modelMonitoringAlertConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelMonitoringAlertConfig: object expected"); - message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.fromObject(object.modelMonitoringAlertConfig); - } - if (object.predictInstanceSchemaUri != null) - message.predictInstanceSchemaUri = String(object.predictInstanceSchemaUri); - if (object.samplePredictInstance != null) { - if (typeof object.samplePredictInstance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.samplePredictInstance: object expected"); - message.samplePredictInstance = $root.google.protobuf.Value.fromObject(object.samplePredictInstance); - } - if (object.analysisInstanceSchemaUri != null) - message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); - if (object.bigqueryTables) { - if (!Array.isArray(object.bigqueryTables)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.bigqueryTables: array expected"); - message.bigqueryTables = []; - for (var i = 0; i < object.bigqueryTables.length; ++i) { - if (typeof object.bigqueryTables[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.bigqueryTables: object expected"); - message.bigqueryTables[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.fromObject(object.bigqueryTables[i]); - } - } - if (object.logTtl != null) { - if (typeof object.logTtl !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.logTtl: object expected"); - message.logTtl = $root.google.protobuf.Duration.fromObject(object.logTtl); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.nextScheduleTime != null) { - if (typeof object.nextScheduleTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.nextScheduleTime: object expected"); - message.nextScheduleTime = $root.google.protobuf.Timestamp.fromObject(object.nextScheduleTime); - } - if (object.statsAnomaliesBaseDirectory != null) { - if (typeof object.statsAnomaliesBaseDirectory !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.statsAnomaliesBaseDirectory: object expected"); - message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.statsAnomaliesBaseDirectory); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); } - if (object.enableMonitoringPipelineLogs != null) - message.enableMonitoringPipelineLogs = Boolean(object.enableMonitoringPipelineLogs); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob + * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringJob.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.modelDeploymentMonitoringObjectiveConfigs = []; - object.bigqueryTables = []; - } - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.endpoint = ""; - object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; - object.scheduleState = options.enums === String ? "MONITORING_SCHEDULE_STATE_UNSPECIFIED" : 0; - object.modelDeploymentMonitoringScheduleConfig = null; - object.loggingSamplingStrategy = null; - object.predictInstanceSchemaUri = ""; - object.createTime = null; - object.updateTime = null; - object.nextScheduleTime = null; - object.modelMonitoringAlertConfig = null; - object.analysisInstanceSchemaUri = ""; - object.logTtl = null; - object.samplePredictInstance = null; - object.statsAnomaliesBaseDirectory = null; - object.encryptionSpec = null; - object.enableMonitoringPipelineLogs = false; - object.error = null; - object.latestMonitoringPipelineMetadata = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.JobState[message.state] : message.state; - if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) - object.scheduleState = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] : message.scheduleState; - if (message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length) { - object.modelDeploymentMonitoringObjectiveConfigs = []; - for (var j = 0; j < message.modelDeploymentMonitoringObjectiveConfigs.length; ++j) - object.modelDeploymentMonitoringObjectiveConfigs[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.toObject(message.modelDeploymentMonitoringObjectiveConfigs[j], options); - } - if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) - object.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.toObject(message.modelDeploymentMonitoringScheduleConfig, options); - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) - object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); - if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) - object.predictInstanceSchemaUri = message.predictInstanceSchemaUri; - if (message.bigqueryTables && message.bigqueryTables.length) { - object.bigqueryTables = []; - for (var j = 0; j < message.bigqueryTables.length; ++j) - object.bigqueryTables[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.toObject(message.bigqueryTables[j], options); - } - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.modelDeploymentMonitoringJob = null; + object.updateMask = null; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) - object.nextScheduleTime = $root.google.protobuf.Timestamp.toObject(message.nextScheduleTime, options); - if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) - object.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.toObject(message.modelMonitoringAlertConfig, options); - if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) - object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; - if (message.logTtl != null && message.hasOwnProperty("logTtl")) - object.logTtl = $root.google.protobuf.Duration.toObject(message.logTtl, options); - if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) - object.samplePredictInstance = $root.google.protobuf.Value.toObject(message.samplePredictInstance, options); - if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) - object.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.statsAnomaliesBaseDirectory, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) - object.enableMonitoringPipelineLogs = message.enableMonitoringPipelineLogs; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) - object.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringJob.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringJob + * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest"; }; - ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata = (function() { - - /** - * Properties of a LatestMonitoringPipelineMetadata. - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @interface ILatestMonitoringPipelineMetadata - * @property {google.protobuf.ITimestamp|null} [runTime] LatestMonitoringPipelineMetadata runTime - * @property {google.rpc.IStatus|null} [status] LatestMonitoringPipelineMetadata status - */ - - /** - * Constructs a new LatestMonitoringPipelineMetadata. - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @classdesc Represents a LatestMonitoringPipelineMetadata. - * @implements ILatestMonitoringPipelineMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set - */ - function LatestMonitoringPipelineMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LatestMonitoringPipelineMetadata runTime. - * @member {google.protobuf.ITimestamp|null|undefined} runTime - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @instance - */ - LatestMonitoringPipelineMetadata.prototype.runTime = null; - - /** - * LatestMonitoringPipelineMetadata status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @instance - */ - LatestMonitoringPipelineMetadata.prototype.status = null; - - /** - * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata instance - */ - LatestMonitoringPipelineMetadata.create = function create(properties) { - return new LatestMonitoringPipelineMetadata(properties); - }; - - /** - * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LatestMonitoringPipelineMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) - $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LatestMonitoringPipelineMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LatestMonitoringPipelineMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 2: { - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LatestMonitoringPipelineMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LatestMonitoringPipelineMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LatestMonitoringPipelineMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.runTime != null && message.hasOwnProperty("runTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.runTime); - if (error) - return "runTime." + error; - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; - - /** - * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata - */ - LatestMonitoringPipelineMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); - if (object.runTime != null) { - if (typeof object.runTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.runTime: object expected"); - message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - return message; - }; - - /** - * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LatestMonitoringPipelineMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.runTime = null; - object.status = null; - } - if (message.runTime != null && message.hasOwnProperty("runTime")) - object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this LatestMonitoringPipelineMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @instance - * @returns {Object.} JSON object - */ - LatestMonitoringPipelineMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for LatestMonitoringPipelineMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LatestMonitoringPipelineMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata"; - }; - - return LatestMonitoringPipelineMetadata; - })(); - - /** - * MonitoringScheduleState enum. - * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState - * @enum {number} - * @property {number} MONITORING_SCHEDULE_STATE_UNSPECIFIED=0 MONITORING_SCHEDULE_STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} OFFLINE=2 OFFLINE value - * @property {number} RUNNING=3 RUNNING value - */ - ModelDeploymentMonitoringJob.MonitoringScheduleState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MONITORING_SCHEDULE_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "OFFLINE"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - return values; - })(); - - return ModelDeploymentMonitoringJob; + return UpdateModelDeploymentMonitoringJobRequest; })(); - v1beta1.ModelDeploymentMonitoringBigQueryTable = (function() { + v1beta1.DeleteModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringBigQueryTable. + * Properties of a DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelDeploymentMonitoringBigQueryTable - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null} [logSource] ModelDeploymentMonitoringBigQueryTable logSource - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null} [logType] ModelDeploymentMonitoringBigQueryTable logType - * @property {string|null} [bigqueryTablePath] ModelDeploymentMonitoringBigQueryTable bigqueryTablePath + * @interface IDeleteModelDeploymentMonitoringJobRequest + * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelDeploymentMonitoringBigQueryTable. - * @implements IModelDeploymentMonitoringBigQueryTable + * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. + * @implements IDeleteModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringBigQueryTable(properties) { + function DeleteModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250918,103 +256016,75 @@ } /** - * ModelDeploymentMonitoringBigQueryTable logSource. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource} logSource - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable - * @instance - */ - ModelDeploymentMonitoringBigQueryTable.prototype.logSource = 0; - - /** - * ModelDeploymentMonitoringBigQueryTable logType. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType} logType - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable - * @instance - */ - ModelDeploymentMonitoringBigQueryTable.prototype.logType = 0; - - /** - * ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. - * @member {string} bigqueryTablePath - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * DeleteModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; + DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance */ - ModelDeploymentMonitoringBigQueryTable.create = function create(properties) { - return new ModelDeploymentMonitoringBigQueryTable(properties); + DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new DeleteModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringBigQueryTable.encode = function encode(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.logSource != null && Object.hasOwnProperty.call(message, "logSource")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logSource); - if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logType); - if (message.bigqueryTablePath != null && Object.hasOwnProperty.call(message, "bigqueryTablePath")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.bigqueryTablePath); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringBigQueryTable.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringBigQueryTable.decode = function decode(reader, length) { + DeleteModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.logSource = reader.int32(); - break; - } - case 2: { - message.logType = reader.int32(); - break; - } - case 3: { - message.bigqueryTablePath = reader.string(); + message.name = reader.string(); break; } default: @@ -251026,208 +256096,122 @@ }; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringBigQueryTable.decodeDelimited = function decodeDelimited(reader) { + DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringBigQueryTable.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.logSource != null && message.hasOwnProperty("logSource")) - switch (message.logSource) { - default: - return "logSource: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.logType != null && message.hasOwnProperty("logType")) - switch (message.logType) { - default: - return "logType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) - if (!$util.isString(message.bigqueryTablePath)) - return "bigqueryTablePath: string expected"; + DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest */ - ModelDeploymentMonitoringBigQueryTable.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) + DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable(); - switch (object.logSource) { - case "LOG_SOURCE_UNSPECIFIED": - case 0: - message.logSource = 0; - break; - case "TRAINING": - case 1: - message.logSource = 1; - break; - case "SERVING": - case 2: - message.logSource = 2; - break; - } - switch (object.logType) { - case "LOG_TYPE_UNSPECIFIED": - case 0: - message.logType = 0; - break; - case "PREDICT": - case 1: - message.logType = 1; - break; - case "EXPLAIN": - case 2: - message.logType = 2; - break; - } - if (object.bigqueryTablePath != null) - message.bigqueryTablePath = String(object.bigqueryTablePath); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable + * @param {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringBigQueryTable.toObject = function toObject(message, options) { + DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; - object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; - object.bigqueryTablePath = ""; - } - if (message.logSource != null && message.hasOwnProperty("logSource")) - object.logSource = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] : message.logSource; - if (message.logType != null && message.hasOwnProperty("logType")) - object.logType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] : message.logType; - if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) - object.bigqueryTablePath = message.bigqueryTablePath; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringBigQueryTable.prototype.toJSON = function toJSON() { + DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringBigQueryTable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest"; }; - /** - * LogSource enum. - * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource - * @enum {number} - * @property {number} LOG_SOURCE_UNSPECIFIED=0 LOG_SOURCE_UNSPECIFIED value - * @property {number} TRAINING=1 TRAINING value - * @property {number} SERVING=2 SERVING value - */ - ModelDeploymentMonitoringBigQueryTable.LogSource = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_SOURCE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TRAINING"] = 1; - values[valuesById[2] = "SERVING"] = 2; - return values; - })(); - - /** - * LogType enum. - * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType - * @enum {number} - * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value - * @property {number} PREDICT=1 PREDICT value - * @property {number} EXPLAIN=2 EXPLAIN value - */ - ModelDeploymentMonitoringBigQueryTable.LogType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PREDICT"] = 1; - values[valuesById[2] = "EXPLAIN"] = 2; - return values; - })(); - - return ModelDeploymentMonitoringBigQueryTable; + return DeleteModelDeploymentMonitoringJobRequest; })(); - v1beta1.ModelDeploymentMonitoringObjectiveConfig = (function() { + v1beta1.PauseModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringObjectiveConfig. + * Properties of a PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelDeploymentMonitoringObjectiveConfig - * @property {string|null} [deployedModelId] ModelDeploymentMonitoringObjectiveConfig deployedModelId - * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null} [objectiveConfig] ModelDeploymentMonitoringObjectiveConfig objectiveConfig + * @interface IPauseModelDeploymentMonitoringJobRequest + * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelDeploymentMonitoringObjectiveConfig. - * @implements IModelDeploymentMonitoringObjectiveConfig + * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. + * @implements IPauseModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringObjectiveConfig(properties) { + function PauseModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -251235,89 +256219,75 @@ } /** - * ModelDeploymentMonitoringObjectiveConfig deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig - * @instance - */ - ModelDeploymentMonitoringObjectiveConfig.prototype.deployedModelId = ""; - - /** - * ModelDeploymentMonitoringObjectiveConfig objectiveConfig. - * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null|undefined} objectiveConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * PauseModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringObjectiveConfig.prototype.objectiveConfig = null; + PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig instance + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance */ - ModelDeploymentMonitoringObjectiveConfig.create = function create(properties) { - return new ModelDeploymentMonitoringObjectiveConfig(properties); + PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new PauseModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringObjectiveConfig.encode = function encode(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deployedModelId); - if (message.objectiveConfig != null && Object.hasOwnProperty.call(message, "objectiveConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringObjectiveConfig.decode = function decode(reader, length) { + PauseModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.deployedModelId = reader.string(); - break; - } - case 2: { - message.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -251329,137 +256299,122 @@ }; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * Verifies a PauseModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringObjectiveConfig.verify = function verify(message) { + PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfig); - if (error) - return "objectiveConfig." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest */ - ModelDeploymentMonitoringObjectiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) + PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig(); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.objectiveConfig != null) { - if (typeof object.objectiveConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.objectiveConfig: object expected"); - message.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfig); - } + var message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig + * @param {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringObjectiveConfig.toObject = function toObject(message, options) { + PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.deployedModelId = ""; - object.objectiveConfig = null; - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) - object.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfig, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * Gets the default type url for PauseModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PauseModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest"; }; - return ModelDeploymentMonitoringObjectiveConfig; + return PauseModelDeploymentMonitoringJobRequest; })(); - v1beta1.ModelDeploymentMonitoringScheduleConfig = (function() { + v1beta1.ResumeModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringScheduleConfig. + * Properties of a ResumeModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelDeploymentMonitoringScheduleConfig - * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval - * @property {google.protobuf.IDuration|null} [monitorWindow] ModelDeploymentMonitoringScheduleConfig monitorWindow + * @interface IResumeModelDeploymentMonitoringJobRequest + * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelDeploymentMonitoringScheduleConfig. - * @implements IModelDeploymentMonitoringScheduleConfig + * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. + * @implements IResumeModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringScheduleConfig(properties) { + function ResumeModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -251467,89 +256422,75 @@ } /** - * ModelDeploymentMonitoringScheduleConfig monitorInterval. - * @member {google.protobuf.IDuration|null|undefined} monitorInterval - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig - * @instance - */ - ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; - - /** - * ModelDeploymentMonitoringScheduleConfig monitorWindow. - * @member {google.protobuf.IDuration|null|undefined} monitorWindow - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * ResumeModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringScheduleConfig.prototype.monitorWindow = null; + ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig instance + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance */ - ModelDeploymentMonitoringScheduleConfig.create = function create(properties) { - return new ModelDeploymentMonitoringScheduleConfig(properties); + ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new ResumeModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringScheduleConfig.encode = function encode(message, writer) { + ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.monitorInterval != null && Object.hasOwnProperty.call(message, "monitorInterval")) - $root.google.protobuf.Duration.encode(message.monitorInterval, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.monitorWindow != null && Object.hasOwnProperty.call(message, "monitorWindow")) - $root.google.protobuf.Duration.encode(message.monitorWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { + ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringScheduleConfig.decode = function decode(reader, length) { + ResumeModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 2: { - message.monitorWindow = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -251561,145 +256502,122 @@ }; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringScheduleConfig.decodeDelimited = function decodeDelimited(reader) { + ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * Verifies a ResumeModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringScheduleConfig.verify = function verify(message) { + ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) { - var error = $root.google.protobuf.Duration.verify(message.monitorInterval); - if (error) - return "monitorInterval." + error; - } - if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) { - var error = $root.google.protobuf.Duration.verify(message.monitorWindow); - if (error) - return "monitorWindow." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest */ - ModelDeploymentMonitoringScheduleConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) + ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig(); - if (object.monitorInterval != null) { - if (typeof object.monitorInterval !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitorInterval: object expected"); - message.monitorInterval = $root.google.protobuf.Duration.fromObject(object.monitorInterval); - } - if (object.monitorWindow != null) { - if (typeof object.monitorWindow !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitorWindow: object expected"); - message.monitorWindow = $root.google.protobuf.Duration.fromObject(object.monitorWindow); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig + * @param {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringScheduleConfig.toObject = function toObject(message, options) { + ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.monitorInterval = null; - object.monitorWindow = null; - } - if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) - object.monitorInterval = $root.google.protobuf.Duration.toObject(message.monitorInterval, options); - if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) - object.monitorWindow = $root.google.protobuf.Duration.toObject(message.monitorWindow, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringScheduleConfig.prototype.toJSON = function toJSON() { + ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringScheduleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResumeModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest"; }; - return ModelDeploymentMonitoringScheduleConfig; + return ResumeModelDeploymentMonitoringJobRequest; })(); - v1beta1.ModelMonitoringStatsAnomalies = (function() { + v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { /** - * Properties of a ModelMonitoringStatsAnomalies. + * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelMonitoringStatsAnomalies - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null} [objective] ModelMonitoringStatsAnomalies objective - * @property {string|null} [deployedModelId] ModelMonitoringStatsAnomalies deployedModelId - * @property {number|null} [anomalyCount] ModelMonitoringStatsAnomalies anomalyCount - * @property {Array.|null} [featureStats] ModelMonitoringStatsAnomalies featureStats + * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ /** - * Constructs a new ModelMonitoringStatsAnomalies. + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelMonitoringStatsAnomalies. - * @implements IModelMonitoringStatsAnomalies + * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. + * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set */ - function ModelMonitoringStatsAnomalies(properties) { - this.featureStats = []; + function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -251707,120 +256625,75 @@ } /** - * ModelMonitoringStatsAnomalies objective. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} objective - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies - * @instance - */ - ModelMonitoringStatsAnomalies.prototype.objective = 0; - - /** - * ModelMonitoringStatsAnomalies deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies - * @instance - */ - ModelMonitoringStatsAnomalies.prototype.deployedModelId = ""; - - /** - * ModelMonitoringStatsAnomalies anomalyCount. - * @member {number} anomalyCount - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies - * @instance - */ - ModelMonitoringStatsAnomalies.prototype.anomalyCount = 0; - - /** - * ModelMonitoringStatsAnomalies featureStats. - * @member {Array.} featureStats - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance */ - ModelMonitoringStatsAnomalies.prototype.featureStats = $util.emptyArray; + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance */ - ModelMonitoringStatsAnomalies.create = function create(properties) { - return new ModelMonitoringStatsAnomalies(properties); + UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); }; /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringStatsAnomalies.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.objective != null && Object.hasOwnProperty.call(message, "objective")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objective); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.anomalyCount != null && Object.hasOwnProperty.call(message, "anomalyCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.anomalyCount); - if (message.featureStats != null && message.featureStats.length) - for (var i = 0; i < message.featureStats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.encode(message.featureStats[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringStatsAnomalies.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.objective = reader.int32(); - break; - } - case 2: { - message.deployedModelId = reader.string(); - break; - } - case 3: { - message.anomalyCount = reader.int32(); - break; - } - case 4: { - if (!(message.featureStats && message.featureStats.length)) - message.featureStats = []; - message.featureStats.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.decode(reader, reader.uint32())); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -251832,478 +256705,107 @@ }; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringStatsAnomalies.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.objective != null && message.hasOwnProperty("objective")) - switch (message.objective) { - default: - return "objective: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) - if (!$util.isInteger(message.anomalyCount)) - return "anomalyCount: integer expected"; - if (message.featureStats != null && message.hasOwnProperty("featureStats")) { - if (!Array.isArray(message.featureStats)) - return "featureStats: array expected"; - for (var i = 0; i < message.featureStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify(message.featureStats[i]); - if (error) - return "featureStats." + error; - } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } return null; }; /** - * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata */ - ModelMonitoringStatsAnomalies.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) + UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies(); - switch (object.objective) { - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": - case 0: - message.objective = 0; - break; - case "RAW_FEATURE_SKEW": - case 1: - message.objective = 1; - break; - case "RAW_FEATURE_DRIFT": - case 2: - message.objective = 2; - break; - case "FEATURE_ATTRIBUTION_SKEW": - case 3: - message.objective = 3; - break; - case "FEATURE_ATTRIBUTION_DRIFT": - case 4: - message.objective = 4; - break; - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.anomalyCount != null) - message.anomalyCount = object.anomalyCount | 0; - if (object.featureStats) { - if (!Array.isArray(object.featureStats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.featureStats: array expected"); - message.featureStats = []; - for (var i = 0; i < object.featureStats.length; ++i) { - if (typeof object.featureStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.featureStats: object expected"); - message.featureStats[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.fromObject(object.featureStats[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies + * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringStatsAnomalies.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.featureStats = []; - if (options.defaults) { - object.objective = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.deployedModelId = ""; - object.anomalyCount = 0; - } - if (message.objective != null && message.hasOwnProperty("objective")) - object.objective = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.objective] : message.objective; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) - object.anomalyCount = message.anomalyCount; - if (message.featureStats && message.featureStats.length) { - object.featureStats = []; - for (var j = 0; j < message.featureStats.length; ++j) - object.featureStats[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.toObject(message.featureStats[j], options); - } + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this ModelMonitoringStatsAnomalies to JSON. + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance * @returns {Object.} JSON object */ - ModelMonitoringStatsAnomalies.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelMonitoringStatsAnomalies + * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelMonitoringStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelDeploymentMonitoringJobOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata"; }; - ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies = (function() { - - /** - * Properties of a FeatureHistoricStatsAnomalies. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies - * @interface IFeatureHistoricStatsAnomalies - * @property {string|null} [featureDisplayName] FeatureHistoricStatsAnomalies featureDisplayName - * @property {google.cloud.aiplatform.v1beta1.IThresholdConfig|null} [threshold] FeatureHistoricStatsAnomalies threshold - * @property {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null} [trainingStats] FeatureHistoricStatsAnomalies trainingStats - * @property {Array.|null} [predictionStats] FeatureHistoricStatsAnomalies predictionStats - */ - - /** - * Constructs a new FeatureHistoricStatsAnomalies. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies - * @classdesc Represents a FeatureHistoricStatsAnomalies. - * @implements IFeatureHistoricStatsAnomalies - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set - */ - function FeatureHistoricStatsAnomalies(properties) { - this.predictionStats = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeatureHistoricStatsAnomalies featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.featureDisplayName = ""; - - /** - * FeatureHistoricStatsAnomalies threshold. - * @member {google.cloud.aiplatform.v1beta1.IThresholdConfig|null|undefined} threshold - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.threshold = null; - - /** - * FeatureHistoricStatsAnomalies trainingStats. - * @member {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null|undefined} trainingStats - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.trainingStats = null; - - /** - * FeatureHistoricStatsAnomalies predictionStats. - * @member {Array.} predictionStats - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.predictionStats = $util.emptyArray; - - /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies instance - */ - FeatureHistoricStatsAnomalies.create = function create(properties) { - return new FeatureHistoricStatsAnomalies(properties); - }; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureHistoricStatsAnomalies.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureDisplayName); - if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) - $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.threshold, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainingStats != null && Object.hasOwnProperty.call(message, "trainingStats")) - $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.encode(message.trainingStats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.predictionStats != null && message.predictionStats.length) - for (var i = 0; i < message.predictionStats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.encode(message.predictionStats[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureHistoricStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureHistoricStatsAnomalies.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.featureDisplayName = reader.string(); - break; - } - case 3: { - message.threshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); - break; - } - case 4: { - message.trainingStats = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32()); - break; - } - case 5: { - if (!(message.predictionStats && message.predictionStats.length)) - message.predictionStats = []; - message.predictionStats.push($root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureHistoricStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeatureHistoricStatsAnomalies message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureHistoricStatsAnomalies.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - if (!$util.isString(message.featureDisplayName)) - return "featureDisplayName: string expected"; - if (message.threshold != null && message.hasOwnProperty("threshold")) { - var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.threshold); - if (error) - return "threshold." + error; - } - if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify(message.trainingStats); - if (error) - return "trainingStats." + error; - } - if (message.predictionStats != null && message.hasOwnProperty("predictionStats")) { - if (!Array.isArray(message.predictionStats)) - return "predictionStats: array expected"; - for (var i = 0; i < message.predictionStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify(message.predictionStats[i]); - if (error) - return "predictionStats." + error; - } - } - return null; - }; - - /** - * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - */ - FeatureHistoricStatsAnomalies.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); - if (object.featureDisplayName != null) - message.featureDisplayName = String(object.featureDisplayName); - if (object.threshold != null) { - if (typeof object.threshold !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.threshold: object expected"); - message.threshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.threshold); - } - if (object.trainingStats != null) { - if (typeof object.trainingStats !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.trainingStats: object expected"); - message.trainingStats = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.fromObject(object.trainingStats); - } - if (object.predictionStats) { - if (!Array.isArray(object.predictionStats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: array expected"); - message.predictionStats = []; - for (var i = 0; i < object.predictionStats.length; ++i) { - if (typeof object.predictionStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: object expected"); - message.predictionStats[i] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.fromObject(object.predictionStats[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureHistoricStatsAnomalies.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.predictionStats = []; - if (options.defaults) { - object.featureDisplayName = ""; - object.threshold = null; - object.trainingStats = null; - } - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - object.featureDisplayName = message.featureDisplayName; - if (message.threshold != null && message.hasOwnProperty("threshold")) - object.threshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.threshold, options); - if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) - object.trainingStats = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.toObject(message.trainingStats, options); - if (message.predictionStats && message.predictionStats.length) { - object.predictionStats = []; - for (var j = 0; j < message.predictionStats.length; ++j) - object.predictionStats[j] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.toObject(message.predictionStats[j], options); - } - return object; - }; - - /** - * Converts this FeatureHistoricStatsAnomalies to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - * @returns {Object.} JSON object - */ - FeatureHistoricStatsAnomalies.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FeatureHistoricStatsAnomalies - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureHistoricStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies"; - }; - - return FeatureHistoricStatsAnomalies; - })(); - - return ModelMonitoringStatsAnomalies; + return UpdateModelDeploymentMonitoringJobOperationMetadata; })(); v1beta1.LineageSubgraph = (function() { diff --git a/protos/protos.json b/protos/protos.json index 0adbc07b..8e5971f6 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -645,7 +645,7 @@ "type": "ExplanationMetadata", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } } } @@ -6623,6 +6623,109 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "indexStats": { + "type": "IndexStats", + "id": 14, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "indexUpdateMethod": { + "type": "IndexUpdateMethod", + "id": 16, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + }, + "nested": { + "IndexUpdateMethod": { + "values": { + "INDEX_UPDATE_METHOD_UNSPECIFIED": 0, + "BATCH_UPDATE": 1, + "STREAM_UPDATE": 2 + } + } + } + }, + "IndexDatapoint": { + "fields": { + "datapointId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureVector": { + "rule": "repeated", + "type": "float", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "restricts": { + "rule": "repeated", + "type": "Restriction", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "crowdingTag": { + "type": "CrowdingTag", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "Restriction": { + "fields": { + "namespace": { + "type": "string", + "id": 1 + }, + "allowList": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "denyList": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "CrowdingTag": { + "fields": { + "crowdingAttribute": { + "type": "string", + "id": 1 + } + } + } + } + }, + "IndexStats": { + "fields": { + "vectorsCount": { + "type": "int64", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "shardsCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -7382,6 +7485,38 @@ } } ] + }, + "UpsertDatapoints": { + "requestType": "UpsertDatapointsRequest", + "responseType": "UpsertDatapointsResponse", + "options": { + "(google.api.http).post": "/v1/{index=projects/*/locations/*/indexes/*}:upsertDatapoints", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{index=projects/*/locations/*/indexes/*}:upsertDatapoints", + "body": "*" + } + } + ] + }, + "RemoveDatapoints": { + "requestType": "RemoveDatapointsRequest", + "responseType": "RemoveDatapointsResponse", + "options": { + "(google.api.http).post": "/v1/{index=projects/*/locations/*/indexes/*}:removeDatapoints", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{index=projects/*/locations/*/indexes/*}:removeDatapoints", + "body": "*" + } + } + ] } } }, @@ -7508,6 +7643,46 @@ } } }, + "UpsertDatapointsRequest": { + "fields": { + "index": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Index" + } + }, + "datapoints": { + "rule": "repeated", + "type": "IndexDatapoint", + "id": 2 + } + } + }, + "UpsertDatapointsResponse": { + "fields": {} + }, + "RemoveDatapointsRequest": { + "fields": { + "index": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Index" + } + }, + "datapointIds": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + }, + "RemoveDatapointsResponse": { + "fields": {} + }, "NearestNeighborSearchOperationMetadata": { "fields": { "contentValidationStats": { @@ -12348,6 +12523,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 + } + } } } } @@ -13008,6 +13205,10 @@ "orderBy": { "type": "string", "id": 6 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 7 } } }, @@ -17583,6 +17784,18 @@ "modelMonitoringConfig": { "type": "ModelMonitoringConfig", "id": 26 + }, + "modelMonitoringStatsAnomalies": { + "rule": "repeated", + "type": "ModelMonitoringStatsAnomalies", + "id": 31 + }, + "modelMonitoringStatus": { + "type": "google.rpc.Status", + "id": 32, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -17835,7 +18048,7 @@ "type": "ExplanationMetadata", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } } } @@ -18633,58 +18846,374 @@ } } }, - "ModelMonitoringConfig": { + "ModelDeploymentMonitoringObjectiveType": { + "values": { + "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": 0, + "RAW_FEATURE_SKEW": 1, + "RAW_FEATURE_DRIFT": 2, + "FEATURE_ATTRIBUTION_SKEW": 3, + "FEATURE_ATTRIBUTION_DRIFT": 4 + } + }, + "ModelDeploymentMonitoringJob": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}" + }, "fields": { - "objectiveConfigs": { - "rule": "repeated", - "type": "ModelMonitoringObjectiveConfig", - "id": 3 + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "alertConfig": { - "type": "ModelMonitoringAlertConfig", - "id": 2 + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "analysisInstanceSchemaUri": { + "endpoint": { "type": "string", - "id": 4 - } - } - }, - "ModelMonitoringObjectiveConfig": { - "fields": { - "trainingDataset": { - "type": "TrainingDataset", - "id": 1 + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" + } }, - "trainingPredictionSkewDetectionConfig": { - "type": "TrainingPredictionSkewDetectionConfig", - "id": 2 + "state": { + "type": "JobState", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "predictionDriftDetectionConfig": { - "type": "PredictionDriftDetectionConfig", - "id": 3 + "scheduleState": { + "type": "MonitoringScheduleState", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "explanationConfig": { - "type": "ExplanationConfig", - "id": 5 - } - }, - "nested": { - "TrainingDataset": { - "oneofs": { - "dataSource": { - "oneof": [ - "dataset", - "gcsSource", - "bigquerySource" - ] - } - }, - "fields": { - "dataset": { - "type": "string", - "id": 3, - "options": { + "latestMonitoringPipelineMetadata": { + "type": "LatestMonitoringPipelineMetadata", + "id": 25, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "modelDeploymentMonitoringObjectiveConfigs": { + "rule": "repeated", + "type": "ModelDeploymentMonitoringObjectiveConfig", + "id": 6, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "modelDeploymentMonitoringScheduleConfig": { + "type": "ModelDeploymentMonitoringScheduleConfig", + "id": 7, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "loggingSamplingStrategy": { + "type": "SamplingStrategy", + "id": 8, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "modelMonitoringAlertConfig": { + "type": "ModelMonitoringAlertConfig", + "id": 15 + }, + "predictInstanceSchemaUri": { + "type": "string", + "id": 9 + }, + "samplePredictInstance": { + "type": "google.protobuf.Value", + "id": 19 + }, + "analysisInstanceSchemaUri": { + "type": "string", + "id": 16 + }, + "bigqueryTables": { + "rule": "repeated", + "type": "ModelDeploymentMonitoringBigQueryTable", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "logTtl": { + "type": "google.protobuf.Duration", + "id": 17 + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 11 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 13, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "nextScheduleTime": { + "type": "google.protobuf.Timestamp", + "id": 14, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "statsAnomaliesBaseDirectory": { + "type": "GcsDestination", + "id": 20 + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 21 + }, + "enableMonitoringPipelineLogs": { + "type": "bool", + "id": 22 + }, + "error": { + "type": "google.rpc.Status", + "id": 23, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "LatestMonitoringPipelineMetadata": { + "fields": { + "runTime": { + "type": "google.protobuf.Timestamp", + "id": 1 + }, + "status": { + "type": "google.rpc.Status", + "id": 2 + } + } + }, + "MonitoringScheduleState": { + "values": { + "MONITORING_SCHEDULE_STATE_UNSPECIFIED": 0, + "PENDING": 1, + "OFFLINE": 2, + "RUNNING": 3 + } + } + } + }, + "ModelDeploymentMonitoringBigQueryTable": { + "fields": { + "logSource": { + "type": "LogSource", + "id": 1 + }, + "logType": { + "type": "LogType", + "id": 2 + }, + "bigqueryTablePath": { + "type": "string", + "id": 3 + } + }, + "nested": { + "LogSource": { + "values": { + "LOG_SOURCE_UNSPECIFIED": 0, + "TRAINING": 1, + "SERVING": 2 + } + }, + "LogType": { + "values": { + "LOG_TYPE_UNSPECIFIED": 0, + "PREDICT": 1, + "EXPLAIN": 2 + } + } + } + }, + "ModelDeploymentMonitoringObjectiveConfig": { + "fields": { + "deployedModelId": { + "type": "string", + "id": 1 + }, + "objectiveConfig": { + "type": "ModelMonitoringObjectiveConfig", + "id": 2 + } + } + }, + "ModelDeploymentMonitoringScheduleConfig": { + "fields": { + "monitorInterval": { + "type": "google.protobuf.Duration", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "monitorWindow": { + "type": "google.protobuf.Duration", + "id": 2 + } + } + }, + "ModelMonitoringStatsAnomalies": { + "fields": { + "objective": { + "type": "ModelDeploymentMonitoringObjectiveType", + "id": 1 + }, + "deployedModelId": { + "type": "string", + "id": 2 + }, + "anomalyCount": { + "type": "int32", + "id": 3 + }, + "featureStats": { + "rule": "repeated", + "type": "FeatureHistoricStatsAnomalies", + "id": 4 + } + }, + "nested": { + "FeatureHistoricStatsAnomalies": { + "fields": { + "featureDisplayName": { + "type": "string", + "id": 1 + }, + "threshold": { + "type": "ThresholdConfig", + "id": 3 + }, + "trainingStats": { + "type": "FeatureStatsAnomaly", + "id": 4 + }, + "predictionStats": { + "rule": "repeated", + "type": "FeatureStatsAnomaly", + "id": 5 + } + } + } + } + }, + "FeatureStatsAnomaly": { + "fields": { + "score": { + "type": "double", + "id": 1 + }, + "statsUri": { + "type": "string", + "id": 3 + }, + "anomalyUri": { + "type": "string", + "id": 4 + }, + "distributionDeviation": { + "type": "double", + "id": 5 + }, + "anomalyDetectionThreshold": { + "type": "double", + "id": 9 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 7 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 8 + } + } + }, + "ModelMonitoringConfig": { + "fields": { + "objectiveConfigs": { + "rule": "repeated", + "type": "ModelMonitoringObjectiveConfig", + "id": 3 + }, + "alertConfig": { + "type": "ModelMonitoringAlertConfig", + "id": 2 + }, + "analysisInstanceSchemaUri": { + "type": "string", + "id": 4 + }, + "statsAnomaliesBaseDirectory": { + "type": "GcsDestination", + "id": 5 + } + } + }, + "ModelMonitoringObjectiveConfig": { + "fields": { + "trainingDataset": { + "type": "TrainingDataset", + "id": 1 + }, + "trainingPredictionSkewDetectionConfig": { + "type": "TrainingPredictionSkewDetectionConfig", + "id": 2 + }, + "predictionDriftDetectionConfig": { + "type": "PredictionDriftDetectionConfig", + "id": 3 + }, + "explanationConfig": { + "type": "ExplanationConfig", + "id": 5 + } + }, + "nested": { + "TrainingDataset": { + "oneofs": { + "dataSource": { + "oneof": [ + "dataset", + "gcsSource", + "bigquerySource" + ] + } + }, + "fields": { + "dataset": { + "type": "string", + "id": 3, + "options": { "(google.api.resource_reference).type": "aiplatform.googleapis.com/Dataset" } }, @@ -21869,62 +22398,30 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } } - }, - "nested": { - "Objective": { - "values": { - "OBJECTIVE_UNSPECIFIED": 0, - "IMPORT_FEATURE_ANALYSIS": 1, - "SNAPSHOT_ANALYSIS": 2 - } - } - } - }, - "ValueType": { - "values": { - "VALUE_TYPE_UNSPECIFIED": 0, - "BOOL": 1, - "BOOL_ARRAY": 2, - "DOUBLE": 3, - "DOUBLE_ARRAY": 4, - "INT64": 9, - "INT64_ARRAY": 10, - "STRING": 11, - "STRING_ARRAY": 12, - "BYTES": 13 - } - } - } - }, - "FeatureStatsAnomaly": { - "fields": { - "score": { - "type": "double", - "id": 1 - }, - "statsUri": { - "type": "string", - "id": 3 - }, - "anomalyUri": { - "type": "string", - "id": 4 - }, - "distributionDeviation": { - "type": "double", - "id": 5 - }, - "anomalyDetectionThreshold": { - "type": "double", - "id": 9 - }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 7 + }, + "nested": { + "Objective": { + "values": { + "OBJECTIVE_UNSPECIFIED": 0, + "IMPORT_FEATURE_ANALYSIS": 1, + "SNAPSHOT_ANALYSIS": 2 + } + } + } }, - "endTime": { - "type": "google.protobuf.Timestamp", - "id": 8 + "ValueType": { + "values": { + "VALUE_TYPE_UNSPECIFIED": 0, + "BOOL": 1, + "BOOL_ARRAY": 2, + "DOUBLE": 3, + "DOUBLE_ARRAY": 4, + "INT64": 9, + "INT64_ARRAY": 10, + "STRING": 11, + "STRING_ARRAY": 12, + "BYTES": 13 + } } } }, @@ -24517,6 +25014,109 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "indexStats": { + "type": "IndexStats", + "id": 14, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "indexUpdateMethod": { + "type": "IndexUpdateMethod", + "id": 16, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + }, + "nested": { + "IndexUpdateMethod": { + "values": { + "INDEX_UPDATE_METHOD_UNSPECIFIED": 0, + "BATCH_UPDATE": 1, + "STREAM_UPDATE": 2 + } + } + } + }, + "IndexDatapoint": { + "fields": { + "datapointId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureVector": { + "rule": "repeated", + "type": "float", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "restricts": { + "rule": "repeated", + "type": "Restriction", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "crowdingTag": { + "type": "CrowdingTag", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "Restriction": { + "fields": { + "namespace": { + "type": "string", + "id": 1 + }, + "allowList": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "denyList": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "CrowdingTag": { + "fields": { + "crowdingAttribute": { + "type": "string", + "id": 1 + } + } + } + } + }, + "IndexStats": { + "fields": { + "vectorsCount": { + "type": "int64", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "shardsCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -25276,6 +25876,38 @@ } } ] + }, + "UpsertDatapoints": { + "requestType": "UpsertDatapointsRequest", + "responseType": "UpsertDatapointsResponse", + "options": { + "(google.api.http).post": "/v1beta1/{index=projects/*/locations/*/indexes/*}:upsertDatapoints", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{index=projects/*/locations/*/indexes/*}:upsertDatapoints", + "body": "*" + } + } + ] + }, + "RemoveDatapoints": { + "requestType": "RemoveDatapointsRequest", + "responseType": "RemoveDatapointsResponse", + "options": { + "(google.api.http).post": "/v1beta1/{index=projects/*/locations/*/indexes/*}:removeDatapoints", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{index=projects/*/locations/*/indexes/*}:removeDatapoints", + "body": "*" + } + } + ] } } }, @@ -25402,6 +26034,46 @@ } } }, + "UpsertDatapointsRequest": { + "fields": { + "index": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Index" + } + }, + "datapoints": { + "rule": "repeated", + "type": "IndexDatapoint", + "id": 2 + } + } + }, + "UpsertDatapointsResponse": { + "fields": {} + }, + "RemoveDatapointsRequest": { + "fields": { + "index": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Index" + } + }, + "datapointIds": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + }, + "RemoveDatapointsResponse": { + "fields": {} + }, "NearestNeighborSearchOperationMetadata": { "fields": { "contentValidationStats": { @@ -26277,115 +26949,19 @@ } } }, - "GetHyperparameterTuningJobRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" - } - } - } - }, - "ListHyperparameterTuningJobsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" - } - }, - "filter": { - "type": "string", - "id": 2 - }, - "pageSize": { - "type": "int32", - "id": 3 - }, - "pageToken": { - "type": "string", - "id": 4 - }, - "readMask": { - "type": "google.protobuf.FieldMask", - "id": 5 - } - } - }, - "ListHyperparameterTuningJobsResponse": { - "fields": { - "hyperparameterTuningJobs": { - "rule": "repeated", - "type": "HyperparameterTuningJob", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "DeleteHyperparameterTuningJobRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" - } - } - } - }, - "CancelHyperparameterTuningJobRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" - } - } - } - }, - "CreateBatchPredictionJobRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" - } - }, - "batchPredictionJob": { - "type": "BatchPredictionJob", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "GetBatchPredictionJobRequest": { + "GetHyperparameterTuningJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" } } } }, - "ListBatchPredictionJobsRequest": { + "ListHyperparameterTuningJobsRequest": { "fields": { "parent": { "type": "string", @@ -26413,11 +26989,11 @@ } } }, - "ListBatchPredictionJobsResponse": { + "ListHyperparameterTuningJobsResponse": { "fields": { - "batchPredictionJobs": { + "hyperparameterTuningJobs": { "rule": "repeated", - "type": "BatchPredictionJob", + "type": "HyperparameterTuningJob", "id": 1 }, "nextPageToken": { @@ -26426,31 +27002,31 @@ } } }, - "DeleteBatchPredictionJobRequest": { + "DeleteHyperparameterTuningJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" } } } }, - "CancelBatchPredictionJobRequest": { + "CancelHyperparameterTuningJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" } } } }, - "CreateModelDeploymentMonitoringJobRequest": { + "CreateBatchPredictionJobRequest": { "fields": { "parent": { "type": "string", @@ -26460,102 +27036,28 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "modelDeploymentMonitoringJob": { - "type": "ModelDeploymentMonitoringJob", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "SearchModelDeploymentMonitoringStatsAnomaliesRequest": { - "fields": { - "modelDeploymentMonitoringJob": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" - } - }, - "deployedModelId": { - "type": "string", + "batchPredictionJob": { + "type": "BatchPredictionJob", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "featureDisplayName": { - "type": "string", - "id": 3 - }, - "objectives": { - "rule": "repeated", - "type": "StatsAnomaliesObjective", - "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "pageSize": { - "type": "int32", - "id": 5 - }, - "pageToken": { - "type": "string", - "id": 6 - }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 7 - }, - "endTime": { - "type": "google.protobuf.Timestamp", - "id": 8 - } - }, - "nested": { - "StatsAnomaliesObjective": { - "fields": { - "type": { - "type": "ModelDeploymentMonitoringObjectiveType", - "id": 1 - }, - "topFeatureCount": { - "type": "int32", - "id": 4 - } - } - } - } - }, - "SearchModelDeploymentMonitoringStatsAnomaliesResponse": { - "fields": { - "monitoringStats": { - "rule": "repeated", - "type": "ModelMonitoringStatsAnomalies", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 } } }, - "GetModelDeploymentMonitoringJobRequest": { + "GetBatchPredictionJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" } } } }, - "ListModelDeploymentMonitoringJobsRequest": { + "ListBatchPredictionJobsRequest": { "fields": { "parent": { "type": "string", @@ -26583,11 +27085,11 @@ } } }, - "ListModelDeploymentMonitoringJobsResponse": { + "ListBatchPredictionJobsResponse": { "fields": { - "modelDeploymentMonitoringJobs": { + "batchPredictionJobs": { "rule": "repeated", - "type": "ModelDeploymentMonitoringJob", + "type": "BatchPredictionJob", "id": 1 }, "nextPageToken": { @@ -26596,348 +27098,238 @@ } } }, - "UpdateModelDeploymentMonitoringJobRequest": { - "fields": { - "modelDeploymentMonitoringJob": { - "type": "ModelDeploymentMonitoringJob", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "DeleteModelDeploymentMonitoringJobRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" - } - } - } - }, - "PauseModelDeploymentMonitoringJobRequest": { + "DeleteBatchPredictionJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" } } } }, - "ResumeModelDeploymentMonitoringJobRequest": { + "CancelBatchPredictionJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" } } } }, - "UpdateModelDeploymentMonitoringJobOperationMetadata": { - "fields": { - "genericMetadata": { - "type": "GenericOperationMetadata", - "id": 1 - } - } - }, - "ModelDeploymentMonitoringObjectiveType": { - "values": { - "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": 0, - "RAW_FEATURE_SKEW": 1, - "RAW_FEATURE_DRIFT": 2, - "FEATURE_ATTRIBUTION_SKEW": 3, - "FEATURE_ATTRIBUTION_DRIFT": 4 - } - }, - "ModelDeploymentMonitoringJob": { - "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}" - }, + "CreateModelDeploymentMonitoringJobRequest": { "fields": { - "name": { + "parent": { "type": "string", "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "displayName": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "endpoint": { - "type": "string", - "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "state": { - "type": "JobState", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "scheduleState": { - "type": "MonitoringScheduleState", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "latestMonitoringPipelineMetadata": { - "type": "LatestMonitoringPipelineMetadata", - "id": 25, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "modelDeploymentMonitoringObjectiveConfigs": { - "rule": "repeated", - "type": "ModelDeploymentMonitoringObjectiveConfig", - "id": 6, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "modelDeploymentMonitoringScheduleConfig": { - "type": "ModelDeploymentMonitoringScheduleConfig", - "id": 7, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "loggingSamplingStrategy": { - "type": "SamplingStrategy", - "id": 8, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "modelMonitoringAlertConfig": { - "type": "ModelMonitoringAlertConfig", - "id": 15 - }, - "predictInstanceSchemaUri": { - "type": "string", - "id": 9 - }, - "samplePredictInstance": { - "type": "google.protobuf.Value", - "id": 19 - }, - "analysisInstanceSchemaUri": { - "type": "string", - "id": 16 - }, - "bigqueryTables": { - "rule": "repeated", - "type": "ModelDeploymentMonitoringBigQueryTable", - "id": 10, + "modelDeploymentMonitoringJob": { + "type": "ModelDeploymentMonitoringJob", + "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } - }, - "logTtl": { - "type": "google.protobuf.Duration", - "id": 17 - }, - "labels": { - "keyType": "string", + } + } + }, + "SearchModelDeploymentMonitoringStatsAnomaliesRequest": { + "fields": { + "modelDeploymentMonitoringJob": { "type": "string", - "id": 11 - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 12, + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" } }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 13, + "deployedModelId": { + "type": "string", + "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "nextScheduleTime": { - "type": "google.protobuf.Timestamp", - "id": 14, + "featureDisplayName": { + "type": "string", + "id": 3 + }, + "objectives": { + "rule": "repeated", + "type": "StatsAnomaliesObjective", + "id": 4, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "statsAnomaliesBaseDirectory": { - "type": "GcsDestination", - "id": 20 + "pageSize": { + "type": "int32", + "id": 5 }, - "encryptionSpec": { - "type": "EncryptionSpec", - "id": 21 + "pageToken": { + "type": "string", + "id": 6 }, - "enableMonitoringPipelineLogs": { - "type": "bool", - "id": 22 + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 7 }, - "error": { - "type": "google.rpc.Status", - "id": 23, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 8 } }, "nested": { - "LatestMonitoringPipelineMetadata": { + "StatsAnomaliesObjective": { "fields": { - "runTime": { - "type": "google.protobuf.Timestamp", + "type": { + "type": "ModelDeploymentMonitoringObjectiveType", "id": 1 }, - "status": { - "type": "google.rpc.Status", - "id": 2 + "topFeatureCount": { + "type": "int32", + "id": 4 } } - }, - "MonitoringScheduleState": { - "values": { - "MONITORING_SCHEDULE_STATE_UNSPECIFIED": 0, - "PENDING": 1, - "OFFLINE": 2, - "RUNNING": 3 - } } } }, - "ModelDeploymentMonitoringBigQueryTable": { + "SearchModelDeploymentMonitoringStatsAnomaliesResponse": { "fields": { - "logSource": { - "type": "LogSource", + "monitoringStats": { + "rule": "repeated", + "type": "ModelMonitoringStatsAnomalies", "id": 1 }, - "logType": { - "type": "LogType", + "nextPageToken": { + "type": "string", "id": 2 - }, - "bigqueryTablePath": { + } + } + }, + "GetModelDeploymentMonitoringJobRequest": { + "fields": { + "name": { "type": "string", - "id": 3 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } } - }, - "nested": { - "LogSource": { - "values": { - "LOG_SOURCE_UNSPECIFIED": 0, - "TRAINING": 1, - "SERVING": 2 + } + }, + "ListModelDeploymentMonitoringJobsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "LogType": { - "values": { - "LOG_TYPE_UNSPECIFIED": 0, - "PREDICT": 1, - "EXPLAIN": 2 - } + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 } } }, - "ModelDeploymentMonitoringObjectiveConfig": { + "ListModelDeploymentMonitoringJobsResponse": { "fields": { - "deployedModelId": { - "type": "string", + "modelDeploymentMonitoringJobs": { + "rule": "repeated", + "type": "ModelDeploymentMonitoringJob", "id": 1 }, - "objectiveConfig": { - "type": "ModelMonitoringObjectiveConfig", + "nextPageToken": { + "type": "string", "id": 2 } } }, - "ModelDeploymentMonitoringScheduleConfig": { + "UpdateModelDeploymentMonitoringJobRequest": { "fields": { - "monitorInterval": { - "type": "google.protobuf.Duration", + "modelDeploymentMonitoringJob": { + "type": "ModelDeploymentMonitoringJob", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "monitorWindow": { - "type": "google.protobuf.Duration", - "id": 2 + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ModelMonitoringStatsAnomalies": { + "DeleteModelDeploymentMonitoringJobRequest": { "fields": { - "objective": { - "type": "ModelDeploymentMonitoringObjectiveType", - "id": 1 - }, - "deployedModelId": { + "name": { "type": "string", - "id": 2 - }, - "anomalyCount": { - "type": "int32", - "id": 3 - }, - "featureStats": { - "rule": "repeated", - "type": "FeatureHistoricStatsAnomalies", - "id": 4 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } } - }, - "nested": { - "FeatureHistoricStatsAnomalies": { - "fields": { - "featureDisplayName": { - "type": "string", - "id": 1 - }, - "threshold": { - "type": "ThresholdConfig", - "id": 3 - }, - "trainingStats": { - "type": "FeatureStatsAnomaly", - "id": 4 - }, - "predictionStats": { - "rule": "repeated", - "type": "FeatureStatsAnomaly", - "id": 5 - } + } + }, + "PauseModelDeploymentMonitoringJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } + } + } + }, + "ResumeModelDeploymentMonitoringJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" } } } }, + "UpdateModelDeploymentMonitoringJobOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, "LineageSubgraph": { "fields": { "artifacts": { diff --git a/samples/generated/v1/index_service.remove_datapoints.js b/samples/generated/v1/index_service.remove_datapoints.js new file mode 100644 index 00000000..e4fc9bbb --- /dev/null +++ b/samples/generated/v1/index_service.remove_datapoints.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(index) { + // [START aiplatform_v1_generated_IndexService_RemoveDatapoints_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 name of the Index resource to be updated. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + */ + // const index = 'abc123' + /** + * A list of datapoint ids to be deleted. + */ + // const datapointIds = 'abc123' + + // Imports the Aiplatform library + const {IndexServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new IndexServiceClient(); + + async function callRemoveDatapoints() { + // Construct request + const request = { + index, + }; + + // Run request + const response = await aiplatformClient.removeDatapoints(request); + console.log(response); + } + + callRemoveDatapoints(); + // [END aiplatform_v1_generated_IndexService_RemoveDatapoints_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v1/index_service.upsert_datapoints.js b/samples/generated/v1/index_service.upsert_datapoints.js new file mode 100644 index 00000000..4e8ce557 --- /dev/null +++ b/samples/generated/v1/index_service.upsert_datapoints.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(index) { + // [START aiplatform_v1_generated_IndexService_UpsertDatapoints_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 name of the Index resource to be updated. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + */ + // const index = 'abc123' + /** + * A list of datapoints to be created/updated. + */ + // const datapoints = 1234 + + // Imports the Aiplatform library + const {IndexServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new IndexServiceClient(); + + async function callUpsertDatapoints() { + // Construct request + const request = { + index, + }; + + // Run request + const response = await aiplatformClient.upsertDatapoints(request); + console.log(response); + } + + callUpsertDatapoints(); + // [END aiplatform_v1_generated_IndexService_UpsertDatapoints_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v1/model_service.merge_version_aliases.js b/samples/generated/v1/model_service.merge_version_aliases.js index 4c3a5353..a2ea691a 100644 --- a/samples/generated/v1/model_service.merge_version_aliases.js +++ b/samples/generated/v1/model_service.merge_version_aliases.js @@ -37,7 +37,7 @@ function main(name, versionAliases) { /** * Required. The set of version aliases to merge. * The alias should be at most 128 characters, and match - * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. + * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`. * Add the `-` prefix to an alias means removing that alias from the version. * `-` is NOT counted in the 128 characters. Example: `-golden` means removing * the `golden` alias from the version. diff --git a/samples/generated/v1/pipeline_service.list_pipeline_jobs.js b/samples/generated/v1/pipeline_service.list_pipeline_jobs.js index a911a5ec..8aaef0f9 100644 --- a/samples/generated/v1/pipeline_service.list_pipeline_jobs.js +++ b/samples/generated/v1/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').v1; diff --git a/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json b/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json index b34ff16b..5434f51e 100644 --- a/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json +++ b/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json @@ -2563,6 +2563,94 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_IndexService_UpsertDatapoints_async", + "title": "DatasetService upsertDatapoints Sample", + "origin": "API_DEFINITION", + "description": " Add/update Datapoints into an Index.", + "canonical": true, + "file": "index_service.upsert_datapoints.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpsertDatapoints", + "fullName": "google.cloud.aiplatform.v1.IndexService.UpsertDatapoints", + "async": true, + "parameters": [ + { + "name": "index", + "type": "TYPE_STRING" + }, + { + "name": "datapoints", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1.UpsertDatapointsResponse", + "client": { + "shortName": "IndexServiceClient", + "fullName": "google.cloud.aiplatform.v1.IndexServiceClient" + }, + "method": { + "shortName": "UpsertDatapoints", + "fullName": "google.cloud.aiplatform.v1.IndexService.UpsertDatapoints", + "service": { + "shortName": "IndexService", + "fullName": "google.cloud.aiplatform.v1.IndexService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_IndexService_RemoveDatapoints_async", + "title": "DatasetService removeDatapoints Sample", + "origin": "API_DEFINITION", + "description": " Remove Datapoints from an Index.", + "canonical": true, + "file": "index_service.remove_datapoints.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RemoveDatapoints", + "fullName": "google.cloud.aiplatform.v1.IndexService.RemoveDatapoints", + "async": true, + "parameters": [ + { + "name": "index", + "type": "TYPE_STRING" + }, + { + "name": "datapoint_ids", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1.RemoveDatapointsResponse", + "client": { + "shortName": "IndexServiceClient", + "fullName": "google.cloud.aiplatform.v1.IndexServiceClient" + }, + "method": { + "shortName": "RemoveDatapoints", + "fullName": "google.cloud.aiplatform.v1.IndexService.RemoveDatapoints", + "service": { + "shortName": "IndexService", + "fullName": "google.cloud.aiplatform.v1.IndexService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_JobService_CreateCustomJob_async", "title": "DatasetService createCustomJob Sample", @@ -6362,7 +6450,7 @@ "segments": [ { "start": 25, - "end": 114, + "end": 118, "type": "FULL" } ], @@ -6390,6 +6478,10 @@ { "name": "order_by", "type": "TYPE_STRING" + }, + { + "name": "read_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.cloud.aiplatform.v1.ListPipelineJobsResponse", diff --git a/samples/generated/v1/vizier_service.suggest_trials.js b/samples/generated/v1/vizier_service.suggest_trials.js index f5257908..de1c3454 100644 --- a/samples/generated/v1/vizier_service.suggest_trials.js +++ b/samples/generated/v1/vizier_service.suggest_trials.js @@ -34,7 +34,7 @@ function main(parent, suggestionCount, clientId) { */ // const parent = 'abc123' /** - * Required. The number of suggestions requested. + * Required. The number of suggestions requested. It must be positive. */ // const suggestionCount = 1234 /** diff --git a/samples/generated/v1beta1/index_service.remove_datapoints.js b/samples/generated/v1beta1/index_service.remove_datapoints.js new file mode 100644 index 00000000..8b717d58 --- /dev/null +++ b/samples/generated/v1beta1/index_service.remove_datapoints.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(index) { + // [START aiplatform_v1beta1_generated_IndexService_RemoveDatapoints_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 name of the Index resource to be updated. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + */ + // const index = 'abc123' + /** + * A list of datapoint ids to be deleted. + */ + // const datapointIds = 'abc123' + + // Imports the Aiplatform library + const {IndexServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new IndexServiceClient(); + + async function callRemoveDatapoints() { + // Construct request + const request = { + index, + }; + + // Run request + const response = await aiplatformClient.removeDatapoints(request); + console.log(response); + } + + callRemoveDatapoints(); + // [END aiplatform_v1beta1_generated_IndexService_RemoveDatapoints_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v1beta1/index_service.upsert_datapoints.js b/samples/generated/v1beta1/index_service.upsert_datapoints.js new file mode 100644 index 00000000..062b053c --- /dev/null +++ b/samples/generated/v1beta1/index_service.upsert_datapoints.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(index) { + // [START aiplatform_v1beta1_generated_IndexService_UpsertDatapoints_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 name of the Index resource to be updated. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + */ + // const index = 'abc123' + /** + * A list of datapoints to be created/updated. + */ + // const datapoints = 1234 + + // Imports the Aiplatform library + const {IndexServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new IndexServiceClient(); + + async function callUpsertDatapoints() { + // Construct request + const request = { + index, + }; + + // Run request + const response = await aiplatformClient.upsertDatapoints(request); + console.log(response); + } + + callUpsertDatapoints(); + // [END aiplatform_v1beta1_generated_IndexService_UpsertDatapoints_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v1beta1/model_service.merge_version_aliases.js b/samples/generated/v1beta1/model_service.merge_version_aliases.js index 63ea32d5..f20bae63 100644 --- a/samples/generated/v1beta1/model_service.merge_version_aliases.js +++ b/samples/generated/v1beta1/model_service.merge_version_aliases.js @@ -37,7 +37,7 @@ function main(name, versionAliases) { /** * Required. The set of version aliases to merge. * The alias should be at most 128 characters, and match - * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. + * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`. * Add the `-` prefix to an alias means removing that alias from the version. * `-` is NOT counted in the 128 characters. Example: `-golden` means removing * the `golden` alias from the version. diff --git a/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json b/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json index 01434e7c..c71c4042 100644 --- a/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json +++ b/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json @@ -2827,6 +2827,94 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_IndexService_UpsertDatapoints_async", + "title": "DatasetService upsertDatapoints Sample", + "origin": "API_DEFINITION", + "description": " Add/update Datapoints into an Index.", + "canonical": true, + "file": "index_service.upsert_datapoints.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpsertDatapoints", + "fullName": "google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapoints", + "async": true, + "parameters": [ + { + "name": "index", + "type": "TYPE_STRING" + }, + { + "name": "datapoints", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse", + "client": { + "shortName": "IndexServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.IndexServiceClient" + }, + "method": { + "shortName": "UpsertDatapoints", + "fullName": "google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapoints", + "service": { + "shortName": "IndexService", + "fullName": "google.cloud.aiplatform.v1beta1.IndexService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_IndexService_RemoveDatapoints_async", + "title": "DatasetService removeDatapoints Sample", + "origin": "API_DEFINITION", + "description": " Remove Datapoints from an Index.", + "canonical": true, + "file": "index_service.remove_datapoints.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RemoveDatapoints", + "fullName": "google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapoints", + "async": true, + "parameters": [ + { + "name": "index", + "type": "TYPE_STRING" + }, + { + "name": "datapoint_ids", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse", + "client": { + "shortName": "IndexServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.IndexServiceClient" + }, + "method": { + "shortName": "RemoveDatapoints", + "fullName": "google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapoints", + "service": { + "shortName": "IndexService", + "fullName": "google.cloud.aiplatform.v1beta1.IndexService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_JobService_CreateCustomJob_async", "title": "DatasetService createCustomJob Sample", diff --git a/samples/generated/v1beta1/vizier_service.suggest_trials.js b/samples/generated/v1beta1/vizier_service.suggest_trials.js index a159b3ac..7d8cbc0e 100644 --- a/samples/generated/v1beta1/vizier_service.suggest_trials.js +++ b/samples/generated/v1beta1/vizier_service.suggest_trials.js @@ -34,7 +34,7 @@ function main(parent, suggestionCount, clientId) { */ // const parent = 'abc123' /** - * Required. The number of suggestions requested. + * Required. The number of suggestions requested. It must be positive. */ // const suggestionCount = 1234 /** diff --git a/src/v1/dataset_service_client.ts b/src/v1/dataset_service_client.ts index d0f5c17e..81407020 100644 --- a/src/v1/dataset_service_client.ts +++ b/src/v1/dataset_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './dataset_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -106,8 +104,18 @@ export class DatasetServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new DatasetServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof DatasetServiceClient; const servicePath = @@ -127,8 +135,13 @@ export class DatasetServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -149,9 +162,12 @@ export class DatasetServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1321,7 +1337,7 @@ export class DatasetServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1535,7 +1551,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1634,7 +1650,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'dataset.name': request.dataset!.name || '', }); this.initialize(); @@ -1729,7 +1745,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1836,7 +1852,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1862,11 +1878,12 @@ export class DatasetServiceClient { protos.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createDataset, this._gaxModule.createDefaultBackoffSettings() @@ -1975,7 +1992,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2001,11 +2018,12 @@ export class DatasetServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteDataset, this._gaxModule.createDefaultBackoffSettings() @@ -2117,7 +2135,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2143,11 +2161,12 @@ export class DatasetServiceClient { protos.google.cloud.aiplatform.v1.ImportDataOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.importData, this._gaxModule.createDefaultBackoffSettings() @@ -2258,7 +2277,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2284,11 +2303,12 @@ export class DatasetServiceClient { protos.google.cloud.aiplatform.v1.ExportDataOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.exportData, this._gaxModule.createDefaultBackoffSettings() @@ -2416,7 +2436,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2480,7 +2500,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDatasets']; @@ -2553,7 +2573,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDatasets']; @@ -2666,7 +2686,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2713,7 +2733,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDataItems']; @@ -2769,7 +2789,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDataItems']; @@ -2882,7 +2902,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2929,7 +2949,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listSavedQueries']; @@ -2985,7 +3005,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listSavedQueries']; @@ -3098,7 +3118,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3145,7 +3165,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listAnnotations']; @@ -3201,7 +3221,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listAnnotations']; diff --git a/src/v1/endpoint_service_client.ts b/src/v1/endpoint_service_client.ts index 5faebb29..49ef16d1 100644 --- a/src/v1/endpoint_service_client.ts +++ b/src/v1/endpoint_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './endpoint_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class EndpointServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new EndpointServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof EndpointServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class EndpointServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class EndpointServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1305,7 +1321,7 @@ export class EndpointServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1515,7 +1531,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1608,7 +1624,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'endpoint.name': request.endpoint!.name || '', }); this.initialize(); @@ -1724,7 +1740,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1750,11 +1766,12 @@ export class EndpointServiceClient { protos.google.cloud.aiplatform.v1.CreateEndpointOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createEndpoint, this._gaxModule.createDefaultBackoffSettings() @@ -1863,7 +1880,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1889,11 +1906,12 @@ export class EndpointServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteEndpoint, this._gaxModule.createDefaultBackoffSettings() @@ -2019,7 +2037,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ endpoint: request.endpoint || '', }); this.initialize(); @@ -2045,11 +2063,12 @@ export class EndpointServiceClient { protos.google.cloud.aiplatform.v1.DeployModelOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deployModel, this._gaxModule.createDefaultBackoffSettings() @@ -2169,7 +2188,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ endpoint: request.endpoint || '', }); this.initialize(); @@ -2195,11 +2214,12 @@ export class EndpointServiceClient { protos.google.cloud.aiplatform.v1.UndeployModelOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.undeployModel, this._gaxModule.createDefaultBackoffSettings() @@ -2332,7 +2352,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2401,7 +2421,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listEndpoints']; @@ -2479,7 +2499,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listEndpoints']; diff --git a/src/v1/featurestore_online_serving_service_client.ts b/src/v1/featurestore_online_serving_service_client.ts index 96431293..49bde791 100644 --- a/src/v1/featurestore_online_serving_service_client.ts +++ b/src/v1/featurestore_online_serving_service_client.ts @@ -17,20 +17,18 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOptions, - GoogleError, IamClient, IamProtos, LocationsClient, LocationProtos, } from 'google-gax'; - import {PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -40,7 +38,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './featurestore_online_serving_service_client_config.json'; - const version = require('../../../package.json').version; /** @@ -103,8 +100,18 @@ export class FeaturestoreOnlineServingServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new FeaturestoreOnlineServingServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this .constructor as typeof FeaturestoreOnlineServingServiceClient; @@ -125,8 +132,13 @@ export class FeaturestoreOnlineServingServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -147,9 +159,12 @@ export class FeaturestoreOnlineServingServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -279,7 +294,7 @@ export class FeaturestoreOnlineServingServiceClient { // Provide descriptors for these. this.descriptors.stream = { streamingReadFeatureValues: new this._gaxModule.StreamDescriptor( - gax.StreamType.SERVER_STREAMING, + this._gaxModule.StreamType.SERVER_STREAMING, opts.fallback === 'rest' ), }; @@ -1254,7 +1269,7 @@ export class FeaturestoreOnlineServingServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1304,7 +1319,9 @@ export class FeaturestoreOnlineServingServiceClient { setImmediate(() => { stream.emit( 'error', - new GoogleError('The client has already been closed.') + new this._gaxModule.GoogleError( + 'The client has already been closed.' + ) ); }); return stream; @@ -1483,7 +1500,7 @@ export class FeaturestoreOnlineServingServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ entity_type: request.entityType || '', }); this.initialize(); @@ -1530,7 +1547,7 @@ export class FeaturestoreOnlineServingServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ entity_type: request.entityType || '', }); this.initialize(); diff --git a/src/v1/featurestore_service_client.ts b/src/v1/featurestore_service_client.ts index d9a859bf..439a7a0e 100644 --- a/src/v1/featurestore_service_client.ts +++ b/src/v1/featurestore_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './featurestore_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class FeaturestoreServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new FeaturestoreServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof FeaturestoreServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class FeaturestoreServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class FeaturestoreServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1404,7 +1420,7 @@ export class FeaturestoreServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1631,7 +1647,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1724,7 +1740,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1838,7 +1854,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'entity_type.name': request.entityType!.name || '', }); this.initialize(); @@ -1925,7 +1941,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2033,7 +2049,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'feature.name': request.feature!.name || '', }); this.initialize(); @@ -2149,7 +2165,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2175,11 +2191,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createFeaturestore, this._gaxModule.createDefaultBackoffSettings() @@ -2303,7 +2320,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'featurestore.name': request.featurestore!.name || '', }); this.initialize(); @@ -2329,11 +2346,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.updateFeaturestore, this._gaxModule.createDefaultBackoffSettings() @@ -2447,7 +2465,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2473,11 +2491,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteFeaturestore, this._gaxModule.createDefaultBackoffSettings() @@ -2596,7 +2615,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2622,11 +2641,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createEntityType, this._gaxModule.createDefaultBackoffSettings() @@ -2739,7 +2759,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2765,11 +2785,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteEntityType, this._gaxModule.createDefaultBackoffSettings() @@ -2888,7 +2909,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2914,11 +2935,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createFeature, this._gaxModule.createDefaultBackoffSettings() @@ -3032,7 +3054,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3058,11 +3080,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.batchCreateFeatures, this._gaxModule.createDefaultBackoffSettings() @@ -3171,7 +3194,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3197,11 +3220,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteFeature, this._gaxModule.createDefaultBackoffSettings() @@ -3358,7 +3382,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ entity_type: request.entityType || '', }); this.initialize(); @@ -3384,11 +3408,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.importFeatureValues, this._gaxModule.createDefaultBackoffSettings() @@ -3545,7 +3570,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ featurestore: request.featurestore || '', }); this.initialize(); @@ -3575,11 +3600,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.batchReadFeatureValues, this._gaxModule.createDefaultBackoffSettings() @@ -3700,7 +3726,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ entity_type: request.entityType || '', }); this.initialize(); @@ -3726,11 +3752,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.exportFeatureValues, this._gaxModule.createDefaultBackoffSettings() @@ -3873,7 +3900,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3952,7 +3979,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listFeaturestores']; @@ -4040,7 +4067,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listFeaturestores']; @@ -4185,7 +4212,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4264,7 +4291,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listEntityTypes']; @@ -4352,7 +4379,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listEntityTypes']; @@ -4504,7 +4531,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4590,7 +4617,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listFeatures']; @@ -4685,7 +4712,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listFeatures']; @@ -4860,7 +4887,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ location: request.location || '', }); this.initialize(); @@ -4969,7 +4996,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ location: request.location || '', }); const defaultCallSettings = this._defaults['searchFeatures']; @@ -5087,7 +5114,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ location: request.location || '', }); const defaultCallSettings = this._defaults['searchFeatures']; diff --git a/src/v1/gapic_metadata.json b/src/v1/gapic_metadata.json index aea6ae2b..bc7d2508 100644 --- a/src/v1/gapic_metadata.json +++ b/src/v1/gapic_metadata.json @@ -600,6 +600,16 @@ "getIndex" ] }, + "UpsertDatapoints": { + "methods": [ + "upsertDatapoints" + ] + }, + "RemoveDatapoints": { + "methods": [ + "removeDatapoints" + ] + }, "CreateIndex": { "methods": [ "createIndex" @@ -632,6 +642,16 @@ "getIndex" ] }, + "UpsertDatapoints": { + "methods": [ + "upsertDatapoints" + ] + }, + "RemoveDatapoints": { + "methods": [ + "removeDatapoints" + ] + }, "CreateIndex": { "methods": [ "createIndex" diff --git a/src/v1/index_endpoint_service_client.ts b/src/v1/index_endpoint_service_client.ts index e2437551..b104a081 100644 --- a/src/v1/index_endpoint_service_client.ts +++ b/src/v1/index_endpoint_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './index_endpoint_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class IndexEndpointServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new IndexEndpointServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof IndexEndpointServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class IndexEndpointServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class IndexEndpointServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1316,7 +1332,7 @@ export class IndexEndpointServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1533,7 +1549,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1626,7 +1642,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'index_endpoint.name': request.indexEndpoint!.name || '', }); this.initialize(); @@ -1733,7 +1749,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1759,11 +1775,12 @@ export class IndexEndpointServiceClient { protos.google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createIndexEndpoint, this._gaxModule.createDefaultBackoffSettings() @@ -1872,7 +1889,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1898,11 +1915,12 @@ export class IndexEndpointServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteIndexEndpoint, this._gaxModule.createDefaultBackoffSettings() @@ -2015,7 +2033,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ index_endpoint: request.indexEndpoint || '', }); this.initialize(); @@ -2041,11 +2059,12 @@ export class IndexEndpointServiceClient { protos.google.cloud.aiplatform.v1.DeployIndexOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deployIndex, this._gaxModule.createDefaultBackoffSettings() @@ -2157,7 +2176,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ index_endpoint: request.indexEndpoint || '', }); this.initialize(); @@ -2183,11 +2202,12 @@ export class IndexEndpointServiceClient { protos.google.cloud.aiplatform.v1.UndeployIndexOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.undeployIndex, this._gaxModule.createDefaultBackoffSettings() @@ -2300,7 +2320,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ index_endpoint: request.indexEndpoint || '', }); this.initialize(); @@ -2326,11 +2346,12 @@ export class IndexEndpointServiceClient { protos.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.mutateDeployedIndex, this._gaxModule.createDefaultBackoffSettings() @@ -2457,7 +2478,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2520,7 +2541,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listIndexEndpoints']; @@ -2592,7 +2613,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listIndexEndpoints']; diff --git a/src/v1/index_service_client.ts b/src/v1/index_service_client.ts index fe1512ec..1737ae54 100644 --- a/src/v1/index_service_client.ts +++ b/src/v1/index_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './index_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class IndexServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new IndexServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof IndexServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class IndexServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class IndexServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1294,7 +1310,7 @@ export class IndexServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1335,6 +1351,8 @@ export class IndexServiceClient { 'listIndexes', 'updateIndex', 'deleteIndex', + 'upsertDatapoints', + 'removeDatapoints', ]; for (const methodName of indexServiceStubMethods) { const callPromise = this.indexServiceStub.then( @@ -1500,12 +1518,202 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); return this.innerApiCalls.getIndex(request, options, callback); } + /** + * Add/update Datapoints into an Index. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.index + * Required. The name of the Index resource to be updated. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param {number[]} request.datapoints + * A list of datapoints to be created/updated. + * @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 [UpsertDatapointsResponse]{@link google.cloud.aiplatform.v1.UpsertDatapointsResponse}. + * 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/index_service.upsert_datapoints.js + * region_tag:aiplatform_v1_generated_IndexService_UpsertDatapoints_async + */ + upsertDatapoints( + request?: protos.google.cloud.aiplatform.v1.IUpsertDatapointsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IUpsertDatapointsResponse, + protos.google.cloud.aiplatform.v1.IUpsertDatapointsRequest | undefined, + {} | undefined + ] + >; + upsertDatapoints( + request: protos.google.cloud.aiplatform.v1.IUpsertDatapointsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IUpsertDatapointsResponse, + | protos.google.cloud.aiplatform.v1.IUpsertDatapointsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + upsertDatapoints( + request: protos.google.cloud.aiplatform.v1.IUpsertDatapointsRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IUpsertDatapointsResponse, + | protos.google.cloud.aiplatform.v1.IUpsertDatapointsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + upsertDatapoints( + request?: protos.google.cloud.aiplatform.v1.IUpsertDatapointsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IUpsertDatapointsResponse, + | protos.google.cloud.aiplatform.v1.IUpsertDatapointsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IUpsertDatapointsResponse, + | protos.google.cloud.aiplatform.v1.IUpsertDatapointsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IUpsertDatapointsResponse, + protos.google.cloud.aiplatform.v1.IUpsertDatapointsRequest | 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({ + index: request.index || '', + }); + this.initialize(); + return this.innerApiCalls.upsertDatapoints(request, options, callback); + } + /** + * Remove Datapoints from an Index. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.index + * Required. The name of the Index resource to be updated. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param {string[]} request.datapointIds + * A list of datapoint ids to be deleted. + * @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 [RemoveDatapointsResponse]{@link google.cloud.aiplatform.v1.RemoveDatapointsResponse}. + * 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/index_service.remove_datapoints.js + * region_tag:aiplatform_v1_generated_IndexService_RemoveDatapoints_async + */ + removeDatapoints( + request?: protos.google.cloud.aiplatform.v1.IRemoveDatapointsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IRemoveDatapointsResponse, + protos.google.cloud.aiplatform.v1.IRemoveDatapointsRequest | undefined, + {} | undefined + ] + >; + removeDatapoints( + request: protos.google.cloud.aiplatform.v1.IRemoveDatapointsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IRemoveDatapointsResponse, + | protos.google.cloud.aiplatform.v1.IRemoveDatapointsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + removeDatapoints( + request: protos.google.cloud.aiplatform.v1.IRemoveDatapointsRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IRemoveDatapointsResponse, + | protos.google.cloud.aiplatform.v1.IRemoveDatapointsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + removeDatapoints( + request?: protos.google.cloud.aiplatform.v1.IRemoveDatapointsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IRemoveDatapointsResponse, + | protos.google.cloud.aiplatform.v1.IRemoveDatapointsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IRemoveDatapointsResponse, + | protos.google.cloud.aiplatform.v1.IRemoveDatapointsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IRemoveDatapointsResponse, + protos.google.cloud.aiplatform.v1.IRemoveDatapointsRequest | 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({ + index: request.index || '', + }); + this.initialize(); + return this.innerApiCalls.removeDatapoints(request, options, callback); + } /** * Creates an Index. @@ -1607,7 +1815,7 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1633,11 +1841,12 @@ export class IndexServiceClient { protos.google.cloud.aiplatform.v1.CreateIndexOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createIndex, this._gaxModule.createDefaultBackoffSettings() @@ -1747,7 +1956,7 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'index.name': request.index!.name || '', }); this.initialize(); @@ -1773,11 +1982,12 @@ export class IndexServiceClient { protos.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.updateIndex, this._gaxModule.createDefaultBackoffSettings() @@ -1888,7 +2098,7 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1914,11 +2124,12 @@ export class IndexServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteIndex, this._gaxModule.createDefaultBackoffSettings() @@ -2022,7 +2233,7 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2068,7 +2279,7 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listIndexes']; @@ -2123,7 +2334,7 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listIndexes']; diff --git a/src/v1/index_service_client_config.json b/src/v1/index_service_client_config.json index dcabf5f8..fb5e197f 100644 --- a/src/v1/index_service_client_config.json +++ b/src/v1/index_service_client_config.json @@ -39,6 +39,14 @@ "DeleteIndex": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "UpsertDatapoints": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "RemoveDatapoints": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/src/v1/job_service_client.ts b/src/v1/job_service_client.ts index 5cd216ae..953c9f2a 100644 --- a/src/v1/job_service_client.ts +++ b/src/v1/job_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './job_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class JobServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new JobServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof JobServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class JobServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class JobServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1373,7 +1389,7 @@ export class JobServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1612,7 +1628,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1699,7 +1715,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1801,7 +1817,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1901,7 +1917,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1994,7 +2010,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2093,7 +2109,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2193,7 +2209,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2296,7 +2312,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2408,7 +2424,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2513,7 +2529,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2616,7 +2632,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2724,7 +2740,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2829,7 +2845,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2932,7 +2948,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3037,7 +3053,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3142,7 +3158,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3252,7 +3268,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3278,11 +3294,12 @@ export class JobServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteCustomJob, this._gaxModule.createDefaultBackoffSettings() @@ -3391,7 +3408,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3417,11 +3434,12 @@ export class JobServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteDataLabelingJob, this._gaxModule.createDefaultBackoffSettings() @@ -3530,7 +3548,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3560,11 +3578,12 @@ export class JobServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteHyperparameterTuningJob, this._gaxModule.createDefaultBackoffSettings() @@ -3674,7 +3693,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3704,11 +3723,12 @@ export class JobServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteBatchPredictionJob, this._gaxModule.createDefaultBackoffSettings() @@ -3844,7 +3864,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'model_deployment_monitoring_job.name': request.modelDeploymentMonitoringJob!.name || '', }); @@ -3875,11 +3895,12 @@ export class JobServiceClient { protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.updateModelDeploymentMonitoringJob, this._gaxModule.createDefaultBackoffSettings() @@ -3988,7 +4009,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4018,11 +4039,12 @@ export class JobServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteModelDeploymentMonitoringJob, this._gaxModule.createDefaultBackoffSettings() @@ -4146,7 +4168,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4206,7 +4228,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listCustomJobs']; @@ -4275,7 +4297,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listCustomJobs']; @@ -4405,7 +4427,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4469,7 +4491,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDataLabelingJobs']; @@ -4542,7 +4564,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDataLabelingJobs']; @@ -4668,7 +4690,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4732,7 +4754,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; @@ -4801,7 +4823,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; @@ -4928,7 +4950,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4993,7 +5015,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listBatchPredictionJobs']; @@ -5063,7 +5085,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listBatchPredictionJobs']; @@ -5187,7 +5209,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ model_deployment_monitoring_job: request.modelDeploymentMonitoringJob || '', }); @@ -5250,7 +5272,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ model_deployment_monitoring_job: request.modelDeploymentMonitoringJob || '', }); @@ -5320,7 +5342,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ model_deployment_monitoring_job: request.modelDeploymentMonitoringJob || '', }); @@ -5447,7 +5469,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5508,7 +5530,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = @@ -5575,7 +5597,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = diff --git a/src/v1/metadata_service_client.ts b/src/v1/metadata_service_client.ts index 3aa9715a..13b58977 100644 --- a/src/v1/metadata_service_client.ts +++ b/src/v1/metadata_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './metadata_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class MetadataServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new MetadataServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof MetadataServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class MetadataServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class MetadataServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1372,7 +1388,7 @@ export class MetadataServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1612,7 +1628,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1716,7 +1732,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1803,7 +1819,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1904,7 +1920,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'artifact.name': request.artifact!.name || '', }); this.initialize(); @@ -2008,7 +2024,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2095,7 +2111,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2196,7 +2212,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'context.name': request.context!.name || '', }); this.initialize(); @@ -2309,7 +2325,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ context: request.context || '', }); this.initialize(); @@ -2413,7 +2429,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ context: request.context || '', }); this.initialize(); @@ -2518,7 +2534,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ context: request.context || '', }); this.initialize(); @@ -2627,7 +2643,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2714,7 +2730,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2815,7 +2831,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'execution.name': request.execution!.name || '', }); this.initialize(); @@ -2914,7 +2930,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ execution: request.execution || '', }); this.initialize(); @@ -3016,7 +3032,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ execution: request.execution || '', }); this.initialize(); @@ -3131,7 +3147,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3224,7 +3240,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3357,7 +3373,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ artifact: request.artifact || '', }); this.initialize(); @@ -3478,7 +3494,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3504,11 +3520,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createMetadataStore, this._gaxModule.createDefaultBackoffSettings() @@ -3620,7 +3637,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3646,11 +3663,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteMetadataStore, this._gaxModule.createDefaultBackoffSettings() @@ -3763,7 +3781,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3789,11 +3807,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteArtifact, this._gaxModule.createDefaultBackoffSettings() @@ -3909,7 +3928,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3935,11 +3954,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1.PurgeArtifactsMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.purgeArtifacts, this._gaxModule.createDefaultBackoffSettings() @@ -4055,7 +4075,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4081,11 +4101,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteContext, this._gaxModule.createDefaultBackoffSettings() @@ -4201,7 +4222,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4227,11 +4248,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1.PurgeContextsMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.purgeContexts, this._gaxModule.createDefaultBackoffSettings() @@ -4344,7 +4366,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4370,11 +4392,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteExecution, this._gaxModule.createDefaultBackoffSettings() @@ -4490,7 +4513,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4516,11 +4539,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1.PurgeExecutionsMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.purgeExecutions, this._gaxModule.createDefaultBackoffSettings() @@ -4632,7 +4656,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4680,7 +4704,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listMetadataStores']; @@ -4737,7 +4761,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listMetadataStores']; @@ -4877,7 +4901,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4951,7 +4975,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listArtifacts']; @@ -5034,7 +5058,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listArtifacts']; @@ -5178,7 +5202,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5256,7 +5280,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listContexts']; @@ -5343,7 +5367,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listContexts']; @@ -5482,7 +5506,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5555,7 +5579,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listExecutions']; @@ -5637,7 +5661,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listExecutions']; @@ -5753,7 +5777,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5803,7 +5827,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listMetadataSchemas']; @@ -5862,7 +5886,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listMetadataSchemas']; diff --git a/src/v1/migration_service_client.ts b/src/v1/migration_service_client.ts index c9d8dac9..ec9a4c49 100644 --- a/src/v1/migration_service_client.ts +++ b/src/v1/migration_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './migration_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -106,8 +104,18 @@ export class MigrationServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new MigrationServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof MigrationServiceClient; const servicePath = @@ -127,8 +135,13 @@ export class MigrationServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -149,9 +162,12 @@ export class MigrationServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1275,7 +1291,7 @@ export class MigrationServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1503,7 +1519,7 @@ export class MigrationServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1529,11 +1545,12 @@ export class MigrationServiceClient { protos.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.batchMigrateResources, this._gaxModule.createDefaultBackoffSettings() @@ -1655,7 +1672,7 @@ export class MigrationServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1715,7 +1732,7 @@ export class MigrationServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['searchMigratableResources']; @@ -1780,7 +1797,7 @@ export class MigrationServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['searchMigratableResources']; diff --git a/src/v1/model_service_client.ts b/src/v1/model_service_client.ts index b50905fb..06ac3cce 100644 --- a/src/v1/model_service_client.ts +++ b/src/v1/model_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './model_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class ModelServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new ModelServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof ModelServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class ModelServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class ModelServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1320,7 +1336,7 @@ export class ModelServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1545,7 +1561,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1650,7 +1666,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'model.name': request.model!.name || '', }); this.initialize(); @@ -1669,7 +1685,7 @@ export class ModelServiceClient { * @param {string[]} request.versionAliases * Required. The set of version aliases to merge. * The alias should be at most 128 characters, and match - * `{@link a-z0-9-|a-z}{0,126}[a-z-0-9]`. + * `{@link a-zA-Z0-9-|a-z}{0,126}[a-z-0-9]`. * Add the `-` prefix to an alias means removing that alias from the version. * `-` is NOT counted in the 128 characters. Example: `-golden` means removing * the `golden` alias from the version. @@ -1757,7 +1773,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1857,7 +1873,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1958,7 +1974,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2055,7 +2071,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2154,7 +2170,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2274,7 +2290,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2300,11 +2316,12 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1.UploadModelOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.uploadModel, this._gaxModule.createDefaultBackoffSettings() @@ -2416,7 +2433,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2442,11 +2459,12 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteModel, this._gaxModule.createDefaultBackoffSettings() @@ -2560,7 +2578,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2586,11 +2604,12 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteModelVersion, this._gaxModule.createDefaultBackoffSettings() @@ -2703,7 +2722,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2729,11 +2748,12 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1.ExportModelOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.exportModel, this._gaxModule.createDefaultBackoffSettings() @@ -2862,7 +2882,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2933,7 +2953,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listModels']; @@ -3013,7 +3033,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listModels']; @@ -3134,7 +3154,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3189,7 +3209,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); const defaultCallSettings = this._defaults['listModelVersions']; @@ -3253,7 +3273,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); const defaultCallSettings = this._defaults['listModelVersions']; @@ -3365,7 +3385,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3411,7 +3431,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listModelEvaluations']; @@ -3466,7 +3486,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listModelEvaluations']; @@ -3581,7 +3601,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3634,7 +3654,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listModelEvaluationSlices']; @@ -3692,7 +3712,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listModelEvaluationSlices']; diff --git a/src/v1/pipeline_service_client.ts b/src/v1/pipeline_service_client.ts index 9f349b3f..29111dec 100644 --- a/src/v1/pipeline_service_client.ts +++ b/src/v1/pipeline_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './pipeline_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -107,8 +105,18 @@ export class PipelineServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new PipelineServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof PipelineServiceClient; const servicePath = @@ -128,8 +136,13 @@ export class PipelineServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -150,9 +163,12 @@ export class PipelineServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1294,7 +1310,7 @@ export class PipelineServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1521,7 +1537,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1618,7 +1634,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1726,7 +1742,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1831,7 +1847,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1924,7 +1940,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2026,7 +2042,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2132,7 +2148,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2162,11 +2178,12 @@ export class PipelineServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteTrainingPipeline, this._gaxModule.createDefaultBackoffSettings() @@ -2275,7 +2292,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2301,11 +2318,12 @@ export class PipelineServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deletePipelineJob, this._gaxModule.createDefaultBackoffSettings() @@ -2431,7 +2449,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2493,7 +2511,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTrainingPipelines']; @@ -2564,7 +2582,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTrainingPipelines']; @@ -2640,6 +2658,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. @@ -2721,7 +2741,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2791,6 +2811,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} @@ -2812,7 +2834,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listPipelineJobs']; @@ -2890,6 +2912,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} @@ -2912,7 +2936,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listPipelineJobs']; diff --git a/src/v1/prediction_service_client.ts b/src/v1/prediction_service_client.ts index 3f548fe5..d7d49033 100644 --- a/src/v1/prediction_service_client.ts +++ b/src/v1/prediction_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -38,7 +38,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './prediction_service_client_config.json'; - const version = require('../../../package.json').version; /** @@ -101,8 +100,18 @@ export class PredictionServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new PredictionServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof PredictionServiceClient; const servicePath = @@ -122,8 +131,13 @@ export class PredictionServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -144,9 +158,12 @@ export class PredictionServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1242,7 +1259,7 @@ export class PredictionServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1454,7 +1471,7 @@ export class PredictionServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ endpoint: request.endpoint || '', }); this.initialize(); @@ -1563,7 +1580,7 @@ export class PredictionServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ endpoint: request.endpoint || '', }); this.initialize(); @@ -1684,7 +1701,7 @@ export class PredictionServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ endpoint: request.endpoint || '', }); this.initialize(); diff --git a/src/v1/specialist_pool_service_client.ts b/src/v1/specialist_pool_service_client.ts index adfca479..6120cf3e 100644 --- a/src/v1/specialist_pool_service_client.ts +++ b/src/v1/specialist_pool_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './specialist_pool_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -110,8 +108,18 @@ export class SpecialistPoolServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new SpecialistPoolServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this .constructor as typeof SpecialistPoolServiceClient; @@ -132,8 +140,13 @@ export class SpecialistPoolServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -154,9 +167,12 @@ export class SpecialistPoolServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1300,7 +1316,7 @@ export class SpecialistPoolServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1515,7 +1531,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1622,7 +1638,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1648,11 +1664,12 @@ export class SpecialistPoolServiceClient { protos.google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createSpecialistPool, this._gaxModule.createDefaultBackoffSettings() @@ -1764,7 +1781,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1790,11 +1807,12 @@ export class SpecialistPoolServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteSpecialistPool, this._gaxModule.createDefaultBackoffSettings() @@ -1903,7 +1921,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'specialist_pool.name': request.specialistPool!.name || '', }); this.initialize(); @@ -1929,11 +1947,12 @@ export class SpecialistPoolServiceClient { protos.google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.updateSpecialistPool, this._gaxModule.createDefaultBackoffSettings() @@ -2041,7 +2060,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2085,7 +2104,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listSpecialistPools']; @@ -2138,7 +2157,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listSpecialistPools']; diff --git a/src/v1/tensorboard_service_client.ts b/src/v1/tensorboard_service_client.ts index d98efef6..a4e56831 100644 --- a/src/v1/tensorboard_service_client.ts +++ b/src/v1/tensorboard_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -27,15 +27,12 @@ import { LROperation, PaginationCallback, GaxCall, - GoogleError, IamClient, IamProtos, LocationsClient, LocationProtos, } from 'google-gax'; - -import {Transform} from 'stream'; -import {PassThrough} from 'stream'; +import {Transform, PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -44,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './tensorboard_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -107,8 +103,18 @@ export class TensorboardServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new TensorboardServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof TensorboardServiceClient; const servicePath = @@ -128,8 +134,13 @@ export class TensorboardServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -150,9 +161,12 @@ export class TensorboardServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -319,7 +333,7 @@ export class TensorboardServiceClient { // Provide descriptors for these. this.descriptors.stream = { readTensorboardBlobData: new this._gaxModule.StreamDescriptor( - gax.StreamType.SERVER_STREAMING, + this._gaxModule.StreamType.SERVER_STREAMING, opts.fallback === 'rest' ), }; @@ -1369,7 +1383,7 @@ export class TensorboardServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1444,7 +1458,9 @@ export class TensorboardServiceClient { setImmediate(() => { stream.emit( 'error', - new GoogleError('The client has already been closed.') + new this._gaxModule.GoogleError( + 'The client has already been closed.' + ) ); }); return stream; @@ -1620,7 +1636,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1727,7 +1743,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1830,7 +1846,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1940,7 +1956,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'tensorboard_experiment.name': request.tensorboardExperiment!.name || '', }); @@ -2052,7 +2068,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2156,7 +2172,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2253,7 +2269,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2359,7 +2375,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'tensorboard_run.name': request.tensorboardRun!.name || '', }); this.initialize(); @@ -2465,7 +2481,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2576,7 +2592,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2679,7 +2695,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2790,7 +2806,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'tensorboard_time_series.name': request.tensorboardTimeSeries!.name || '', }); @@ -2903,7 +2919,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard: request.tensorboard || '', }); this.initialize(); @@ -3017,7 +3033,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard_time_series: request.tensorboardTimeSeries || '', }); this.initialize(); @@ -3124,7 +3140,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard_experiment: request.tensorboardExperiment || '', }); this.initialize(); @@ -3235,7 +3251,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard_run: request.tensorboardRun || '', }); this.initialize(); @@ -3279,7 +3295,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ time_series: request.timeSeries || '', }); this.initialize(); @@ -3386,7 +3402,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3412,11 +3428,12 @@ export class TensorboardServiceClient { protos.google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createTensorboard, this._gaxModule.createDefaultBackoffSettings() @@ -3532,7 +3549,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'tensorboard.name': request.tensorboard!.name || '', }); this.initialize(); @@ -3558,11 +3575,12 @@ export class TensorboardServiceClient { protos.google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.updateTensorboard, this._gaxModule.createDefaultBackoffSettings() @@ -3671,7 +3689,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3697,11 +3715,12 @@ export class TensorboardServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteTensorboard, this._gaxModule.createDefaultBackoffSettings() @@ -3810,7 +3829,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3840,11 +3859,12 @@ export class TensorboardServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteTensorboardExperiment, this._gaxModule.createDefaultBackoffSettings() @@ -3953,7 +3973,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3979,11 +3999,12 @@ export class TensorboardServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteTensorboardRun, this._gaxModule.createDefaultBackoffSettings() @@ -4092,7 +4113,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4122,11 +4143,12 @@ export class TensorboardServiceClient { protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteTensorboardTimeSeries, this._gaxModule.createDefaultBackoffSettings() @@ -4245,7 +4267,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4300,7 +4322,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboards']; @@ -4364,7 +4386,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboards']; @@ -4485,7 +4507,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4544,7 +4566,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboardExperiments']; @@ -4608,7 +4630,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboardExperiments']; @@ -4729,7 +4751,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4784,7 +4806,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboardRuns']; @@ -4848,7 +4870,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboardRuns']; @@ -4969,7 +4991,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5028,7 +5050,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboardTimeSeries']; @@ -5092,7 +5114,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboardTimeSeries']; @@ -5213,7 +5235,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard_time_series: request.tensorboardTimeSeries || '', }); this.initialize(); @@ -5271,7 +5293,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard_time_series: request.tensorboardTimeSeries || '', }); const defaultCallSettings = @@ -5335,7 +5357,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard_time_series: request.tensorboardTimeSeries || '', }); const defaultCallSettings = diff --git a/src/v1/vizier_service_client.ts b/src/v1/vizier_service_client.ts index 7e3ad3fe..17061cff 100644 --- a/src/v1/vizier_service_client.ts +++ b/src/v1/vizier_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './vizier_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -109,8 +107,18 @@ export class VizierServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new VizierServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof VizierServiceClient; const servicePath = @@ -130,8 +138,13 @@ export class VizierServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -152,9 +165,12 @@ export class VizierServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1296,7 +1312,7 @@ export class VizierServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1516,7 +1532,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1600,7 +1616,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1686,7 +1702,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1775,7 +1791,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1863,7 +1879,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1948,7 +1964,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2044,7 +2060,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ trial_name: request.trialName || '', }); this.initialize(); @@ -2147,7 +2163,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2234,7 +2250,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2321,7 +2337,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2415,7 +2431,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2435,7 +2451,7 @@ export class VizierServiceClient { * Required. The project and location that the Study belongs to. * Format: `projects/{project}/locations/{location}/studies/{study}` * @param {number} request.suggestionCount - * Required. The number of suggestions requested. + * Required. The number of suggestions requested. It must be positive. * @param {string} request.clientId * Required. The identifier of the client that is requesting the suggestion. * @@ -2532,7 +2548,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2558,11 +2574,12 @@ export class VizierServiceClient { protos.google.cloud.aiplatform.v1.SuggestTrialsMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.suggestTrials, this._gaxModule.createDefaultBackoffSettings() @@ -2674,7 +2691,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ trial_name: request.trialName || '', }); this.initialize(); @@ -2704,11 +2721,12 @@ export class VizierServiceClient { protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.checkTrialEarlyStoppingState, this._gaxModule.createDefaultBackoffSettings() @@ -2807,7 +2825,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2848,7 +2866,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listStudies']; @@ -2898,7 +2916,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listStudies']; @@ -2999,7 +3017,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3040,7 +3058,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTrials']; @@ -3090,7 +3108,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTrials']; diff --git a/src/v1beta1/dataset_service_client.ts b/src/v1beta1/dataset_service_client.ts index 1c969e62..34fcd606 100644 --- a/src/v1beta1/dataset_service_client.ts +++ b/src/v1beta1/dataset_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './dataset_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -106,8 +104,18 @@ export class DatasetServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new DatasetServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof DatasetServiceClient; const servicePath = @@ -127,8 +135,13 @@ export class DatasetServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -149,9 +162,12 @@ export class DatasetServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1389,7 +1405,7 @@ export class DatasetServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1609,7 +1625,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1708,7 +1724,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'dataset.name': request.dataset!.name || '', }); this.initialize(); @@ -1809,7 +1825,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1916,7 +1932,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1942,11 +1958,12 @@ export class DatasetServiceClient { protos.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createDataset, this._gaxModule.createDefaultBackoffSettings() @@ -2055,7 +2072,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2081,11 +2098,12 @@ export class DatasetServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteDataset, this._gaxModule.createDefaultBackoffSettings() @@ -2197,7 +2215,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2223,11 +2241,12 @@ export class DatasetServiceClient { protos.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.importData, this._gaxModule.createDefaultBackoffSettings() @@ -2338,7 +2357,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2364,11 +2383,12 @@ export class DatasetServiceClient { protos.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.exportData, this._gaxModule.createDefaultBackoffSettings() @@ -2496,7 +2516,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2560,7 +2580,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDatasets']; @@ -2633,7 +2653,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDatasets']; @@ -2746,7 +2766,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2793,7 +2813,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDataItems']; @@ -2849,7 +2869,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDataItems']; @@ -2962,7 +2982,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3009,7 +3029,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listSavedQueries']; @@ -3065,7 +3085,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listSavedQueries']; @@ -3178,7 +3198,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3225,7 +3245,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listAnnotations']; @@ -3281,7 +3301,7 @@ export class DatasetServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listAnnotations']; diff --git a/src/v1beta1/deployment_resource_pool_service_client.ts b/src/v1beta1/deployment_resource_pool_service_client.ts index 4c530591..f4ef8b4e 100644 --- a/src/v1beta1/deployment_resource_pool_service_client.ts +++ b/src/v1beta1/deployment_resource_pool_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './deployment_resource_pool_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class DeploymentResourcePoolServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new DeploymentResourcePoolServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this .constructor as typeof DeploymentResourcePoolServiceClient; @@ -127,8 +135,13 @@ export class DeploymentResourcePoolServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -149,9 +162,12 @@ export class DeploymentResourcePoolServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1368,7 +1384,7 @@ export class DeploymentResourcePoolServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1589,7 +1605,7 @@ export class DeploymentResourcePoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1707,7 +1723,7 @@ export class DeploymentResourcePoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1737,11 +1753,12 @@ export class DeploymentResourcePoolServiceClient { protos.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createDeploymentResourcePool, this._gaxModule.createDefaultBackoffSettings() @@ -1850,7 +1867,7 @@ export class DeploymentResourcePoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1880,11 +1897,12 @@ export class DeploymentResourcePoolServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteDeploymentResourcePool, this._gaxModule.createDefaultBackoffSettings() @@ -1993,7 +2011,7 @@ export class DeploymentResourcePoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2042,7 +2060,7 @@ export class DeploymentResourcePoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDeploymentResourcePools']; @@ -2096,7 +2114,7 @@ export class DeploymentResourcePoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDeploymentResourcePools']; @@ -2208,7 +2226,7 @@ export class DeploymentResourcePoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ deployment_resource_pool: request.deploymentResourcePool || '', }); this.initialize(); @@ -2254,7 +2272,7 @@ export class DeploymentResourcePoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ deployment_resource_pool: request.deploymentResourcePool || '', }); const defaultCallSettings = this._defaults['queryDeployedModels']; @@ -2309,7 +2327,7 @@ export class DeploymentResourcePoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ deployment_resource_pool: request.deploymentResourcePool || '', }); const defaultCallSettings = this._defaults['queryDeployedModels']; diff --git a/src/v1beta1/endpoint_service_client.ts b/src/v1beta1/endpoint_service_client.ts index 77640855..7a234bb3 100644 --- a/src/v1beta1/endpoint_service_client.ts +++ b/src/v1beta1/endpoint_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './endpoint_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class EndpointServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new EndpointServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof EndpointServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class EndpointServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class EndpointServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1373,7 +1389,7 @@ export class EndpointServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1589,7 +1605,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1682,7 +1698,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'endpoint.name': request.endpoint!.name || '', }); this.initialize(); @@ -1798,7 +1814,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1824,11 +1840,12 @@ export class EndpointServiceClient { protos.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createEndpoint, this._gaxModule.createDefaultBackoffSettings() @@ -1937,7 +1954,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1963,11 +1980,12 @@ export class EndpointServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteEndpoint, this._gaxModule.createDefaultBackoffSettings() @@ -2093,7 +2111,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ endpoint: request.endpoint || '', }); this.initialize(); @@ -2119,11 +2137,12 @@ export class EndpointServiceClient { protos.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deployModel, this._gaxModule.createDefaultBackoffSettings() @@ -2243,7 +2262,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ endpoint: request.endpoint || '', }); this.initialize(); @@ -2269,11 +2288,12 @@ export class EndpointServiceClient { protos.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.undeployModel, this._gaxModule.createDefaultBackoffSettings() @@ -2397,7 +2417,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2457,7 +2477,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listEndpoints']; @@ -2526,7 +2546,7 @@ export class EndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listEndpoints']; diff --git a/src/v1beta1/featurestore_online_serving_service_client.ts b/src/v1beta1/featurestore_online_serving_service_client.ts index ea37865b..41657a8b 100644 --- a/src/v1beta1/featurestore_online_serving_service_client.ts +++ b/src/v1beta1/featurestore_online_serving_service_client.ts @@ -17,20 +17,18 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOptions, - GoogleError, IamClient, IamProtos, LocationsClient, LocationProtos, } from 'google-gax'; - import {PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -40,7 +38,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './featurestore_online_serving_service_client_config.json'; - const version = require('../../../package.json').version; /** @@ -103,8 +100,18 @@ export class FeaturestoreOnlineServingServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new FeaturestoreOnlineServingServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this .constructor as typeof FeaturestoreOnlineServingServiceClient; @@ -125,8 +132,13 @@ export class FeaturestoreOnlineServingServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -147,9 +159,12 @@ export class FeaturestoreOnlineServingServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -282,7 +297,7 @@ export class FeaturestoreOnlineServingServiceClient { // Provide descriptors for these. this.descriptors.stream = { streamingReadFeatureValues: new this._gaxModule.StreamDescriptor( - gax.StreamType.SERVER_STREAMING, + this._gaxModule.StreamType.SERVER_STREAMING, opts.fallback === 'rest' ), }; @@ -1322,7 +1337,7 @@ export class FeaturestoreOnlineServingServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1373,7 +1388,9 @@ export class FeaturestoreOnlineServingServiceClient { setImmediate(() => { stream.emit( 'error', - new GoogleError('The client has already been closed.') + new this._gaxModule.GoogleError( + 'The client has already been closed.' + ) ); }); return stream; @@ -1558,7 +1575,7 @@ export class FeaturestoreOnlineServingServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ entity_type: request.entityType || '', }); this.initialize(); @@ -1666,7 +1683,7 @@ export class FeaturestoreOnlineServingServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ entity_type: request.entityType || '', }); this.initialize(); @@ -1713,7 +1730,7 @@ export class FeaturestoreOnlineServingServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ entity_type: request.entityType || '', }); this.initialize(); diff --git a/src/v1beta1/featurestore_service_client.ts b/src/v1beta1/featurestore_service_client.ts index 2d7e70ee..015506ec 100644 --- a/src/v1beta1/featurestore_service_client.ts +++ b/src/v1beta1/featurestore_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './featurestore_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class FeaturestoreServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new FeaturestoreServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof FeaturestoreServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class FeaturestoreServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class FeaturestoreServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1472,7 +1488,7 @@ export class FeaturestoreServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1706,7 +1722,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1799,7 +1815,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1919,7 +1935,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'entity_type.name': request.entityType!.name || '', }); this.initialize(); @@ -2012,7 +2028,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2120,7 +2136,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'feature.name': request.feature!.name || '', }); this.initialize(); @@ -2236,7 +2252,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2262,11 +2278,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createFeaturestore, this._gaxModule.createDefaultBackoffSettings() @@ -2390,7 +2407,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'featurestore.name': request.featurestore!.name || '', }); this.initialize(); @@ -2416,11 +2433,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.updateFeaturestore, this._gaxModule.createDefaultBackoffSettings() @@ -2534,7 +2552,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2560,11 +2578,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteFeaturestore, this._gaxModule.createDefaultBackoffSettings() @@ -2683,7 +2702,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2709,11 +2728,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createEntityType, this._gaxModule.createDefaultBackoffSettings() @@ -2826,7 +2846,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2852,11 +2872,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteEntityType, this._gaxModule.createDefaultBackoffSettings() @@ -2975,7 +2996,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3001,11 +3022,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createFeature, this._gaxModule.createDefaultBackoffSettings() @@ -3119,7 +3141,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3145,11 +3167,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.batchCreateFeatures, this._gaxModule.createDefaultBackoffSettings() @@ -3258,7 +3281,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3284,11 +3307,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteFeature, this._gaxModule.createDefaultBackoffSettings() @@ -3445,7 +3469,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ entity_type: request.entityType || '', }); this.initialize(); @@ -3471,11 +3495,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.importFeatureValues, this._gaxModule.createDefaultBackoffSettings() @@ -3632,7 +3657,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ featurestore: request.featurestore || '', }); this.initialize(); @@ -3662,11 +3687,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.batchReadFeatureValues, this._gaxModule.createDefaultBackoffSettings() @@ -3787,7 +3813,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ entity_type: request.entityType || '', }); this.initialize(); @@ -3813,11 +3839,12 @@ export class FeaturestoreServiceClient { protos.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.exportFeatureValues, this._gaxModule.createDefaultBackoffSettings() @@ -3960,7 +3987,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4039,7 +4066,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listFeaturestores']; @@ -4127,7 +4154,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listFeaturestores']; @@ -4272,7 +4299,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4351,7 +4378,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listEntityTypes']; @@ -4439,7 +4466,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listEntityTypes']; @@ -4591,7 +4618,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4677,7 +4704,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listFeatures']; @@ -4772,7 +4799,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listFeatures']; @@ -4947,7 +4974,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ location: request.location || '', }); this.initialize(); @@ -5056,7 +5083,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ location: request.location || '', }); const defaultCallSettings = this._defaults['searchFeatures']; @@ -5174,7 +5201,7 @@ export class FeaturestoreServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ location: request.location || '', }); const defaultCallSettings = this._defaults['searchFeatures']; diff --git a/src/v1beta1/gapic_metadata.json b/src/v1beta1/gapic_metadata.json index 066c1d6a..e3e19f14 100644 --- a/src/v1beta1/gapic_metadata.json +++ b/src/v1beta1/gapic_metadata.json @@ -682,6 +682,16 @@ "getIndex" ] }, + "UpsertDatapoints": { + "methods": [ + "upsertDatapoints" + ] + }, + "RemoveDatapoints": { + "methods": [ + "removeDatapoints" + ] + }, "CreateIndex": { "methods": [ "createIndex" @@ -714,6 +724,16 @@ "getIndex" ] }, + "UpsertDatapoints": { + "methods": [ + "upsertDatapoints" + ] + }, + "RemoveDatapoints": { + "methods": [ + "removeDatapoints" + ] + }, "CreateIndex": { "methods": [ "createIndex" diff --git a/src/v1beta1/index_endpoint_service_client.ts b/src/v1beta1/index_endpoint_service_client.ts index 7a2268ed..9c63c400 100644 --- a/src/v1beta1/index_endpoint_service_client.ts +++ b/src/v1beta1/index_endpoint_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './index_endpoint_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class IndexEndpointServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new IndexEndpointServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof IndexEndpointServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class IndexEndpointServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class IndexEndpointServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1384,7 +1400,7 @@ export class IndexEndpointServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1608,7 +1624,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1707,7 +1723,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'index_endpoint.name': request.indexEndpoint!.name || '', }); this.initialize(); @@ -1814,7 +1830,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1840,11 +1856,12 @@ export class IndexEndpointServiceClient { protos.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createIndexEndpoint, this._gaxModule.createDefaultBackoffSettings() @@ -1953,7 +1970,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1979,11 +1996,12 @@ export class IndexEndpointServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteIndexEndpoint, this._gaxModule.createDefaultBackoffSettings() @@ -2096,7 +2114,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ index_endpoint: request.indexEndpoint || '', }); this.initialize(); @@ -2122,11 +2140,12 @@ export class IndexEndpointServiceClient { protos.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deployIndex, this._gaxModule.createDefaultBackoffSettings() @@ -2238,7 +2257,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ index_endpoint: request.indexEndpoint || '', }); this.initialize(); @@ -2264,11 +2283,12 @@ export class IndexEndpointServiceClient { protos.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.undeployIndex, this._gaxModule.createDefaultBackoffSettings() @@ -2381,7 +2401,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ index_endpoint: request.indexEndpoint || '', }); this.initialize(); @@ -2407,11 +2427,12 @@ export class IndexEndpointServiceClient { protos.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.mutateDeployedIndex, this._gaxModule.createDefaultBackoffSettings() @@ -2538,7 +2559,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2601,7 +2622,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listIndexEndpoints']; @@ -2673,7 +2694,7 @@ export class IndexEndpointServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listIndexEndpoints']; diff --git a/src/v1beta1/index_service_client.ts b/src/v1beta1/index_service_client.ts index 8a515859..175e6939 100644 --- a/src/v1beta1/index_service_client.ts +++ b/src/v1beta1/index_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './index_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class IndexServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new IndexServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof IndexServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class IndexServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class IndexServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1362,7 +1378,7 @@ export class IndexServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1403,6 +1419,8 @@ export class IndexServiceClient { 'listIndexes', 'updateIndex', 'deleteIndex', + 'upsertDatapoints', + 'removeDatapoints', ]; for (const methodName of indexServiceStubMethods) { const callPromise = this.indexServiceStub.then( @@ -1576,12 +1594,214 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); return this.innerApiCalls.getIndex(request, options, callback); } + /** + * Add/update Datapoints into an Index. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.index + * Required. The name of the Index resource to be updated. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param {number[]} request.datapoints + * A list of datapoints to be created/updated. + * @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 [UpsertDatapointsResponse]{@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse}. + * 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/index_service.upsert_datapoints.js + * region_tag:aiplatform_v1beta1_generated_IndexService_UpsertDatapoints_async + */ + upsertDatapoints( + request?: protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, + ( + | protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest + | undefined + ), + {} | undefined + ] + >; + upsertDatapoints( + request: protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, + | protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + upsertDatapoints( + request: protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, + | protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + upsertDatapoints( + request?: protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, + | protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, + | protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, + ( + | protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest + | 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({ + index: request.index || '', + }); + this.initialize(); + return this.innerApiCalls.upsertDatapoints(request, options, callback); + } + /** + * Remove Datapoints from an Index. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.index + * Required. The name of the Index resource to be updated. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param {string[]} request.datapointIds + * A list of datapoint ids to be deleted. + * @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 [RemoveDatapointsResponse]{@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse}. + * 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/index_service.remove_datapoints.js + * region_tag:aiplatform_v1beta1_generated_IndexService_RemoveDatapoints_async + */ + removeDatapoints( + request?: protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, + ( + | protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest + | undefined + ), + {} | undefined + ] + >; + removeDatapoints( + request: protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, + | protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + removeDatapoints( + request: protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, + | protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + removeDatapoints( + request?: protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, + | protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, + | protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, + ( + | protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest + | 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({ + index: request.index || '', + }); + this.initialize(); + return this.innerApiCalls.removeDatapoints(request, options, callback); + } /** * Creates an Index. @@ -1683,7 +1903,7 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1709,11 +1929,12 @@ export class IndexServiceClient { protos.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createIndex, this._gaxModule.createDefaultBackoffSettings() @@ -1823,7 +2044,7 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'index.name': request.index!.name || '', }); this.initialize(); @@ -1849,11 +2070,12 @@ export class IndexServiceClient { protos.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.updateIndex, this._gaxModule.createDefaultBackoffSettings() @@ -1964,7 +2186,7 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1990,11 +2212,12 @@ export class IndexServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteIndex, this._gaxModule.createDefaultBackoffSettings() @@ -2104,7 +2327,7 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2150,7 +2373,7 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listIndexes']; @@ -2205,7 +2428,7 @@ export class IndexServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listIndexes']; diff --git a/src/v1beta1/index_service_client_config.json b/src/v1beta1/index_service_client_config.json index 8151fa3e..18cb2461 100644 --- a/src/v1beta1/index_service_client_config.json +++ b/src/v1beta1/index_service_client_config.json @@ -44,6 +44,14 @@ "timeout_millis": 5000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "UpsertDatapoints": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "RemoveDatapoints": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/src/v1beta1/job_service_client.ts b/src/v1beta1/job_service_client.ts index 396aa41a..1410cffa 100644 --- a/src/v1beta1/job_service_client.ts +++ b/src/v1beta1/job_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './job_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class JobServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new JobServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof JobServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class JobServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class JobServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1441,7 +1457,7 @@ export class JobServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1686,7 +1702,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1779,7 +1795,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1887,7 +1903,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1987,7 +2003,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2086,7 +2102,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2185,7 +2201,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2285,7 +2301,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2388,7 +2404,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2500,7 +2516,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2605,7 +2621,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2708,7 +2724,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2816,7 +2832,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2921,7 +2937,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3024,7 +3040,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3129,7 +3145,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3234,7 +3250,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3344,7 +3360,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3370,11 +3386,12 @@ export class JobServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteCustomJob, this._gaxModule.createDefaultBackoffSettings() @@ -3483,7 +3500,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3509,11 +3526,12 @@ export class JobServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteDataLabelingJob, this._gaxModule.createDefaultBackoffSettings() @@ -3622,7 +3640,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3652,11 +3670,12 @@ export class JobServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteHyperparameterTuningJob, this._gaxModule.createDefaultBackoffSettings() @@ -3766,7 +3785,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3796,11 +3815,12 @@ export class JobServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteBatchPredictionJob, this._gaxModule.createDefaultBackoffSettings() @@ -3936,7 +3956,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'model_deployment_monitoring_job.name': request.modelDeploymentMonitoringJob!.name || '', }); @@ -3967,11 +3987,12 @@ export class JobServiceClient { protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.updateModelDeploymentMonitoringJob, this._gaxModule.createDefaultBackoffSettings() @@ -4080,7 +4101,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4110,11 +4131,12 @@ export class JobServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteModelDeploymentMonitoringJob, this._gaxModule.createDefaultBackoffSettings() @@ -4238,7 +4260,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4298,7 +4320,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listCustomJobs']; @@ -4367,7 +4389,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listCustomJobs']; @@ -4497,7 +4519,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4561,7 +4583,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDataLabelingJobs']; @@ -4634,7 +4656,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDataLabelingJobs']; @@ -4760,7 +4782,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4824,7 +4846,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; @@ -4893,7 +4915,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; @@ -5020,7 +5042,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5085,7 +5107,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listBatchPredictionJobs']; @@ -5155,7 +5177,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listBatchPredictionJobs']; @@ -5279,7 +5301,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ model_deployment_monitoring_job: request.modelDeploymentMonitoringJob || '', }); @@ -5342,7 +5364,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ model_deployment_monitoring_job: request.modelDeploymentMonitoringJob || '', }); @@ -5412,7 +5434,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ model_deployment_monitoring_job: request.modelDeploymentMonitoringJob || '', }); @@ -5539,7 +5561,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5600,7 +5622,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = @@ -5667,7 +5689,7 @@ export class JobServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = diff --git a/src/v1beta1/metadata_service_client.ts b/src/v1beta1/metadata_service_client.ts index 7a76b2a4..ad3bb89a 100644 --- a/src/v1beta1/metadata_service_client.ts +++ b/src/v1beta1/metadata_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './metadata_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class MetadataServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new MetadataServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof MetadataServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class MetadataServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class MetadataServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1440,7 +1456,7 @@ export class MetadataServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1686,7 +1702,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1790,7 +1806,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1883,7 +1899,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1984,7 +2000,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'artifact.name': request.artifact!.name || '', }); this.initialize(); @@ -2088,7 +2104,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2181,7 +2197,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2282,7 +2298,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'context.name': request.context!.name || '', }); this.initialize(); @@ -2395,7 +2411,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ context: request.context || '', }); this.initialize(); @@ -2505,7 +2521,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ context: request.context || '', }); this.initialize(); @@ -2610,7 +2626,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ context: request.context || '', }); this.initialize(); @@ -2725,7 +2741,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2818,7 +2834,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2925,7 +2941,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'execution.name': request.execution!.name || '', }); this.initialize(); @@ -3030,7 +3046,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ execution: request.execution || '', }); this.initialize(); @@ -3132,7 +3148,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ execution: request.execution || '', }); this.initialize(); @@ -3247,7 +3263,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3346,7 +3362,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3479,7 +3495,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ artifact: request.artifact || '', }); this.initialize(); @@ -3600,7 +3616,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3626,11 +3642,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createMetadataStore, this._gaxModule.createDefaultBackoffSettings() @@ -3742,7 +3759,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3768,11 +3785,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteMetadataStore, this._gaxModule.createDefaultBackoffSettings() @@ -3885,7 +3903,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3911,11 +3929,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteArtifact, this._gaxModule.createDefaultBackoffSettings() @@ -4031,7 +4050,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4057,11 +4076,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.purgeArtifacts, this._gaxModule.createDefaultBackoffSettings() @@ -4177,7 +4197,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4203,11 +4223,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteContext, this._gaxModule.createDefaultBackoffSettings() @@ -4323,7 +4344,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4349,11 +4370,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.purgeContexts, this._gaxModule.createDefaultBackoffSettings() @@ -4466,7 +4488,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4492,11 +4514,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteExecution, this._gaxModule.createDefaultBackoffSettings() @@ -4612,7 +4635,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4638,11 +4661,12 @@ export class MetadataServiceClient { protos.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.purgeExecutions, this._gaxModule.createDefaultBackoffSettings() @@ -4754,7 +4778,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4802,7 +4826,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listMetadataStores']; @@ -4859,7 +4883,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listMetadataStores']; @@ -4999,7 +5023,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5073,7 +5097,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listArtifacts']; @@ -5156,7 +5180,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listArtifacts']; @@ -5300,7 +5324,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5378,7 +5402,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listContexts']; @@ -5465,7 +5489,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listContexts']; @@ -5604,7 +5628,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5677,7 +5701,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listExecutions']; @@ -5759,7 +5783,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listExecutions']; @@ -5875,7 +5899,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5925,7 +5949,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listMetadataSchemas']; @@ -5984,7 +6008,7 @@ export class MetadataServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listMetadataSchemas']; diff --git a/src/v1beta1/migration_service_client.ts b/src/v1beta1/migration_service_client.ts index f92a01db..a816966f 100644 --- a/src/v1beta1/migration_service_client.ts +++ b/src/v1beta1/migration_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './migration_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -106,8 +104,18 @@ export class MigrationServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new MigrationServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof MigrationServiceClient; const servicePath = @@ -127,8 +135,13 @@ export class MigrationServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -149,9 +162,12 @@ export class MigrationServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1343,7 +1359,7 @@ export class MigrationServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1572,7 +1588,7 @@ export class MigrationServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1598,11 +1614,12 @@ export class MigrationServiceClient { protos.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.batchMigrateResources, this._gaxModule.createDefaultBackoffSettings() @@ -1724,7 +1741,7 @@ export class MigrationServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1784,7 +1801,7 @@ export class MigrationServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['searchMigratableResources']; @@ -1849,7 +1866,7 @@ export class MigrationServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['searchMigratableResources']; diff --git a/src/v1beta1/model_service_client.ts b/src/v1beta1/model_service_client.ts index d9faa095..208775f1 100644 --- a/src/v1beta1/model_service_client.ts +++ b/src/v1beta1/model_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './model_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -105,8 +103,18 @@ export class ModelServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new ModelServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof ModelServiceClient; const servicePath = @@ -126,8 +134,13 @@ export class ModelServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -148,9 +161,12 @@ export class ModelServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1403,7 +1419,7 @@ export class ModelServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1637,7 +1653,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1748,7 +1764,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'model.name': request.model!.name || '', }); this.initialize(); @@ -1767,7 +1783,7 @@ export class ModelServiceClient { * @param {string[]} request.versionAliases * Required. The set of version aliases to merge. * The alias should be at most 128 characters, and match - * `{@link a-z0-9-|a-z}{0,126}[a-z-0-9]`. + * `{@link a-zA-Z0-9-|a-z}{0,126}[a-z-0-9]`. * Add the `-` prefix to an alias means removing that alias from the version. * `-` is NOT counted in the 128 characters. Example: `-golden` means removing * the `golden` alias from the version. @@ -1861,7 +1877,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1961,7 +1977,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2062,7 +2078,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2165,7 +2181,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2264,7 +2280,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2384,7 +2400,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2410,11 +2426,12 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.uploadModel, this._gaxModule.createDefaultBackoffSettings() @@ -2524,7 +2541,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ model: request.model || '', }); this.initialize(); @@ -2554,11 +2571,12 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.updateExplanationDataset, this._gaxModule.createDefaultBackoffSettings() @@ -2670,7 +2688,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2696,11 +2714,12 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteModel, this._gaxModule.createDefaultBackoffSettings() @@ -2814,7 +2833,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2840,11 +2859,12 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteModelVersion, this._gaxModule.createDefaultBackoffSettings() @@ -2957,7 +2977,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2983,11 +3003,12 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.exportModel, this._gaxModule.createDefaultBackoffSettings() @@ -3112,7 +3133,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3173,7 +3194,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listModels']; @@ -3243,7 +3264,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listModels']; @@ -3364,7 +3385,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3419,7 +3440,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); const defaultCallSettings = this._defaults['listModelVersions']; @@ -3483,7 +3504,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); const defaultCallSettings = this._defaults['listModelVersions']; @@ -3595,7 +3616,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3641,7 +3662,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listModelEvaluations']; @@ -3696,7 +3717,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listModelEvaluations']; @@ -3811,7 +3832,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3864,7 +3885,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listModelEvaluationSlices']; @@ -3922,7 +3943,7 @@ export class ModelServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listModelEvaluationSlices']; diff --git a/src/v1beta1/pipeline_service_client.ts b/src/v1beta1/pipeline_service_client.ts index b1b4b112..cb1c1948 100644 --- a/src/v1beta1/pipeline_service_client.ts +++ b/src/v1beta1/pipeline_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './pipeline_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -107,8 +105,18 @@ export class PipelineServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new PipelineServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof PipelineServiceClient; const servicePath = @@ -128,8 +136,13 @@ export class PipelineServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -150,9 +163,12 @@ export class PipelineServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1362,7 +1378,7 @@ export class PipelineServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1589,7 +1605,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1692,7 +1708,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1800,7 +1816,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1911,7 +1927,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2004,7 +2020,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2112,7 +2128,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2218,7 +2234,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2248,11 +2264,12 @@ export class PipelineServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteTrainingPipeline, this._gaxModule.createDefaultBackoffSettings() @@ -2361,7 +2378,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2387,11 +2404,12 @@ export class PipelineServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deletePipelineJob, this._gaxModule.createDefaultBackoffSettings() @@ -2517,7 +2535,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2579,7 +2597,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTrainingPipelines']; @@ -2650,7 +2668,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTrainingPipelines']; @@ -2807,7 +2825,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2898,7 +2916,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listPipelineJobs']; @@ -2998,7 +3016,7 @@ export class PipelineServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listPipelineJobs']; diff --git a/src/v1beta1/prediction_service_client.ts b/src/v1beta1/prediction_service_client.ts index 481828a9..9ea08805 100644 --- a/src/v1beta1/prediction_service_client.ts +++ b/src/v1beta1/prediction_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -38,7 +38,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './prediction_service_client_config.json'; - const version = require('../../../package.json').version; /** @@ -101,8 +100,18 @@ export class PredictionServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new PredictionServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof PredictionServiceClient; const servicePath = @@ -122,8 +131,13 @@ export class PredictionServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -144,9 +158,12 @@ export class PredictionServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1310,7 +1327,7 @@ export class PredictionServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1525,7 +1542,7 @@ export class PredictionServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ endpoint: request.endpoint || '', }); this.initialize(); @@ -1640,7 +1657,7 @@ export class PredictionServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ endpoint: request.endpoint || '', }); this.initialize(); @@ -1763,7 +1780,7 @@ export class PredictionServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ endpoint: request.endpoint || '', }); this.initialize(); diff --git a/src/v1beta1/specialist_pool_service_client.ts b/src/v1beta1/specialist_pool_service_client.ts index 98e2c4b4..7cef0f40 100644 --- a/src/v1beta1/specialist_pool_service_client.ts +++ b/src/v1beta1/specialist_pool_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './specialist_pool_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -110,8 +108,18 @@ export class SpecialistPoolServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new SpecialistPoolServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this .constructor as typeof SpecialistPoolServiceClient; @@ -132,8 +140,13 @@ export class SpecialistPoolServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -154,9 +167,12 @@ export class SpecialistPoolServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1368,7 +1384,7 @@ export class SpecialistPoolServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1589,7 +1605,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1696,7 +1712,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1722,11 +1738,12 @@ export class SpecialistPoolServiceClient { protos.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createSpecialistPool, this._gaxModule.createDefaultBackoffSettings() @@ -1838,7 +1855,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1864,11 +1881,12 @@ export class SpecialistPoolServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteSpecialistPool, this._gaxModule.createDefaultBackoffSettings() @@ -1977,7 +1995,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'specialist_pool.name': request.specialistPool!.name || '', }); this.initialize(); @@ -2003,11 +2021,12 @@ export class SpecialistPoolServiceClient { protos.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.updateSpecialistPool, this._gaxModule.createDefaultBackoffSettings() @@ -2115,7 +2134,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2159,7 +2178,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listSpecialistPools']; @@ -2212,7 +2231,7 @@ export class SpecialistPoolServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listSpecialistPools']; diff --git a/src/v1beta1/tensorboard_service_client.ts b/src/v1beta1/tensorboard_service_client.ts index 4b93744a..28668861 100644 --- a/src/v1beta1/tensorboard_service_client.ts +++ b/src/v1beta1/tensorboard_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -27,15 +27,12 @@ import { LROperation, PaginationCallback, GaxCall, - GoogleError, IamClient, IamProtos, LocationsClient, LocationProtos, } from 'google-gax'; - -import {Transform} from 'stream'; -import {PassThrough} from 'stream'; +import {Transform, PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -44,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './tensorboard_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -107,8 +103,18 @@ export class TensorboardServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new TensorboardServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof TensorboardServiceClient; const servicePath = @@ -128,8 +134,13 @@ export class TensorboardServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -150,9 +161,12 @@ export class TensorboardServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -322,7 +336,7 @@ export class TensorboardServiceClient { // Provide descriptors for these. this.descriptors.stream = { readTensorboardBlobData: new this._gaxModule.StreamDescriptor( - gax.StreamType.SERVER_STREAMING, + this._gaxModule.StreamType.SERVER_STREAMING, opts.fallback === 'rest' ), }; @@ -1437,7 +1451,7 @@ export class TensorboardServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1513,7 +1527,9 @@ export class TensorboardServiceClient { setImmediate(() => { stream.emit( 'error', - new GoogleError('The client has already been closed.') + new this._gaxModule.GoogleError( + 'The client has already been closed.' + ) ); }); return stream; @@ -1686,7 +1702,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1793,7 +1809,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1896,7 +1912,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2006,7 +2022,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'tensorboard_experiment.name': request.tensorboardExperiment!.name || '', }); @@ -2118,7 +2134,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2222,7 +2238,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2325,7 +2341,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2431,7 +2447,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'tensorboard_run.name': request.tensorboardRun!.name || '', }); this.initialize(); @@ -2537,7 +2553,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2648,7 +2664,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2751,7 +2767,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2862,7 +2878,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'tensorboard_time_series.name': request.tensorboardTimeSeries!.name || '', }); @@ -2975,7 +2991,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard: request.tensorboard || '', }); this.initialize(); @@ -3089,7 +3105,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard_time_series: request.tensorboardTimeSeries || '', }); this.initialize(); @@ -3196,7 +3212,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard_experiment: request.tensorboardExperiment || '', }); this.initialize(); @@ -3307,7 +3323,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard_run: request.tensorboardRun || '', }); this.initialize(); @@ -3351,7 +3367,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ time_series: request.timeSeries || '', }); this.initialize(); @@ -3458,7 +3474,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3484,11 +3500,12 @@ export class TensorboardServiceClient { protos.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.createTensorboard, this._gaxModule.createDefaultBackoffSettings() @@ -3604,7 +3621,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'tensorboard.name': request.tensorboard!.name || '', }); this.initialize(); @@ -3630,11 +3647,12 @@ export class TensorboardServiceClient { protos.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.updateTensorboard, this._gaxModule.createDefaultBackoffSettings() @@ -3743,7 +3761,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3769,11 +3787,12 @@ export class TensorboardServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteTensorboard, this._gaxModule.createDefaultBackoffSettings() @@ -3882,7 +3901,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3912,11 +3931,12 @@ export class TensorboardServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteTensorboardExperiment, this._gaxModule.createDefaultBackoffSettings() @@ -4025,7 +4045,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4051,11 +4071,12 @@ export class TensorboardServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteTensorboardRun, this._gaxModule.createDefaultBackoffSettings() @@ -4164,7 +4185,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4194,11 +4215,12 @@ export class TensorboardServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.deleteTensorboardTimeSeries, this._gaxModule.createDefaultBackoffSettings() @@ -4317,7 +4339,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4372,7 +4394,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboards']; @@ -4436,7 +4458,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboards']; @@ -4557,7 +4579,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4616,7 +4638,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboardExperiments']; @@ -4680,7 +4702,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboardExperiments']; @@ -4801,7 +4823,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4856,7 +4878,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboardRuns']; @@ -4920,7 +4942,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboardRuns']; @@ -5041,7 +5063,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5100,7 +5122,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboardTimeSeries']; @@ -5164,7 +5186,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTensorboardTimeSeries']; @@ -5285,7 +5307,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard_time_series: request.tensorboardTimeSeries || '', }); this.initialize(); @@ -5343,7 +5365,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard_time_series: request.tensorboardTimeSeries || '', }); const defaultCallSettings = @@ -5407,7 +5429,7 @@ export class TensorboardServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ tensorboard_time_series: request.tensorboardTimeSeries || '', }); const defaultCallSettings = diff --git a/src/v1beta1/vizier_service_client.ts b/src/v1beta1/vizier_service_client.ts index 7cc25ee0..7962ed47 100644 --- a/src/v1beta1/vizier_service_client.ts +++ b/src/v1beta1/vizier_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -32,7 +32,6 @@ import { LocationsClient, LocationProtos, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -42,7 +41,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './vizier_service_client_config.json'; -import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -109,8 +107,18 @@ export class VizierServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new VizierServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof VizierServiceClient; const servicePath = @@ -130,8 +138,13 @@ export class VizierServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -152,9 +165,12 @@ export class VizierServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } - this.iamClient = new IamClient(this._gaxGrpc, opts); + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); - this.locationsClient = new LocationsClient(this._gaxGrpc, opts); + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -1364,7 +1380,7 @@ export class VizierServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -1590,7 +1606,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1682,7 +1698,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1774,7 +1790,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1869,7 +1885,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1963,7 +1979,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2056,7 +2072,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2158,7 +2174,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ trial_name: request.trialName || '', }); this.initialize(); @@ -2261,7 +2277,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2354,7 +2370,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2447,7 +2463,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2547,7 +2563,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2567,7 +2583,7 @@ export class VizierServiceClient { * Required. The project and location that the Study belongs to. * Format: `projects/{project}/locations/{location}/studies/{study}` * @param {number} request.suggestionCount - * Required. The number of suggestions requested. + * Required. The number of suggestions requested. It must be positive. * @param {string} request.clientId * Required. The identifier of the client that is requesting the suggestion. * @@ -2664,7 +2680,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2690,11 +2706,12 @@ export class VizierServiceClient { protos.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.suggestTrials, this._gaxModule.createDefaultBackoffSettings() @@ -2806,7 +2823,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ trial_name: request.trialName || '', }); this.initialize(); @@ -2836,11 +2853,12 @@ export class VizierServiceClient { protos.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata > > { - const request = new operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new gax.Operation( + const decodeOperation = new this._gaxModule.Operation( operation, this.descriptors.longrunning.checkTrialEarlyStoppingState, this._gaxModule.createDefaultBackoffSettings() @@ -2945,7 +2963,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2986,7 +3004,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listStudies']; @@ -3036,7 +3054,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listStudies']; @@ -3143,7 +3161,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3184,7 +3202,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTrials']; @@ -3234,7 +3252,7 @@ export class VizierServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listTrials']; diff --git a/test/gapic_index_service_v1.ts b/test/gapic_index_service_v1.ts index d7fe8a0f..81061411 100644 --- a/test/gapic_index_service_v1.ts +++ b/test/gapic_index_service_v1.ts @@ -371,6 +371,258 @@ describe('v1.IndexServiceClient', () => { }); }); + describe('upsertDatapoints', () => { + it('invokes upsertDatapoints without error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpsertDatapointsRequest() + ); + request.index = ''; + const expectedHeaderRequestParams = 'index='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpsertDatapointsResponse() + ); + client.innerApiCalls.upsertDatapoints = stubSimpleCall(expectedResponse); + const [response] = await client.upsertDatapoints(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.upsertDatapoints as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes upsertDatapoints without error using callback', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpsertDatapointsRequest() + ); + request.index = ''; + const expectedHeaderRequestParams = 'index='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpsertDatapointsResponse() + ); + client.innerApiCalls.upsertDatapoints = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.upsertDatapoints( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IUpsertDatapointsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.upsertDatapoints as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes upsertDatapoints with error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpsertDatapointsRequest() + ); + request.index = ''; + const expectedHeaderRequestParams = 'index='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.upsertDatapoints = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.upsertDatapoints(request), expectedError); + assert( + (client.innerApiCalls.upsertDatapoints as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes upsertDatapoints with closed client', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpsertDatapointsRequest() + ); + request.index = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.upsertDatapoints(request), expectedError); + }); + }); + + describe('removeDatapoints', () => { + it('invokes removeDatapoints without error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RemoveDatapointsRequest() + ); + request.index = ''; + const expectedHeaderRequestParams = 'index='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RemoveDatapointsResponse() + ); + client.innerApiCalls.removeDatapoints = stubSimpleCall(expectedResponse); + const [response] = await client.removeDatapoints(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.removeDatapoints as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes removeDatapoints without error using callback', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RemoveDatapointsRequest() + ); + request.index = ''; + const expectedHeaderRequestParams = 'index='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RemoveDatapointsResponse() + ); + client.innerApiCalls.removeDatapoints = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.removeDatapoints( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IRemoveDatapointsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.removeDatapoints as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes removeDatapoints with error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RemoveDatapointsRequest() + ); + request.index = ''; + const expectedHeaderRequestParams = 'index='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.removeDatapoints = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.removeDatapoints(request), expectedError); + assert( + (client.innerApiCalls.removeDatapoints as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes removeDatapoints with closed client', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RemoveDatapointsRequest() + ); + request.index = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.removeDatapoints(request), expectedError); + }); + }); + describe('createIndex', () => { it('invokes createIndex without error', async () => { const client = new indexserviceModule.v1.IndexServiceClient({ diff --git a/test/gapic_index_service_v1beta1.ts b/test/gapic_index_service_v1beta1.ts index f30570d9..51f2de19 100644 --- a/test/gapic_index_service_v1beta1.ts +++ b/test/gapic_index_service_v1beta1.ts @@ -373,6 +373,258 @@ describe('v1beta1.IndexServiceClient', () => { }); }); + describe('upsertDatapoints', () => { + it('invokes upsertDatapoints without error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest() + ); + request.index = ''; + const expectedHeaderRequestParams = 'index='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse() + ); + client.innerApiCalls.upsertDatapoints = stubSimpleCall(expectedResponse); + const [response] = await client.upsertDatapoints(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.upsertDatapoints as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes upsertDatapoints without error using callback', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest() + ); + request.index = ''; + const expectedHeaderRequestParams = 'index='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse() + ); + client.innerApiCalls.upsertDatapoints = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.upsertDatapoints( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.upsertDatapoints as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes upsertDatapoints with error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest() + ); + request.index = ''; + const expectedHeaderRequestParams = 'index='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.upsertDatapoints = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.upsertDatapoints(request), expectedError); + assert( + (client.innerApiCalls.upsertDatapoints as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes upsertDatapoints with closed client', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest() + ); + request.index = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.upsertDatapoints(request), expectedError); + }); + }); + + describe('removeDatapoints', () => { + it('invokes removeDatapoints without error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest() + ); + request.index = ''; + const expectedHeaderRequestParams = 'index='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse() + ); + client.innerApiCalls.removeDatapoints = stubSimpleCall(expectedResponse); + const [response] = await client.removeDatapoints(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.removeDatapoints as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes removeDatapoints without error using callback', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest() + ); + request.index = ''; + const expectedHeaderRequestParams = 'index='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse() + ); + client.innerApiCalls.removeDatapoints = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.removeDatapoints( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.removeDatapoints as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes removeDatapoints with error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest() + ); + request.index = ''; + const expectedHeaderRequestParams = 'index='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.removeDatapoints = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.removeDatapoints(request), expectedError); + assert( + (client.innerApiCalls.removeDatapoints as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes removeDatapoints with closed client', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest() + ); + request.index = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.removeDatapoints(request), expectedError); + }); + }); + describe('createIndex', () => { it('invokes createIndex without error', async () => { const client = new indexserviceModule.v1beta1.IndexServiceClient({